comet-build 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4f3908e7c959e1cdec30c3c6bcbdba7a1ed0fba
4
- data.tar.gz: 0f9b019db674c87c8ccc583310899d0acfc7f5f8
3
+ metadata.gz: e9162a2dc4bc62ea97f9b8411ddab3fff3ff49bb
4
+ data.tar.gz: '093a32b3f660ada542d2238b1825d173922aa725'
5
5
  SHA512:
6
- metadata.gz: 0320fec38fe8576fc16507c2b340586646f03d362b28c6f226a4172893cc5314697225e4d448a01387441a5f51bcd00ef5845ad87228dc5be0dc854d906df6d9
7
- data.tar.gz: 697683512fe9754bbcedb348aa6f8d6188f1e1d9c3d8109a6897ec010f909fb94a3d6bb12cc30725a6d323dba35c1805fd9f46cbcbb4ff7dd0183ec5b6ff720a
6
+ metadata.gz: e9108c92b2713c45d661cc44acaa0f5122d8d1d75b22724c3ed968d0b8eea024d50322e1a12e2438155fba3166a2ecaac504992c9ac7577bb7cef96caf802178
7
+ data.tar.gz: 5c4d1c9cc942266ab8d084245aafa620f7d5b68d46e354d900bebf82d602299c969884f71b79e20f6d922df9ded931df059f304784d0d153eb134559a6de005f
@@ -8,7 +8,8 @@ module Comet
8
8
  end
9
9
 
10
10
  def contents
11
- (commands + @rules.map(&:contents)).flatten.join "\n"
11
+ output = (commands + @rules.map(&:contents))
12
+ output.flatten.map(&:rstrip).join("\n") + "\n"
12
13
  end
13
14
 
14
15
  def execute(*args)
@@ -26,9 +26,11 @@ module Comet
26
26
  end
27
27
 
28
28
  def contents
29
+ obj_dependencies = "#{@dependency.target} #{@native_sources.join ' '}"
30
+
29
31
  [
30
- "#{target}: #{@dependency.target} #{@native_sources.join ' '} #{@linker.script_ || ''} | #{Comet::TMPDIR}",
31
- "\t#{clang_link} #{formatted_script} #{formatted_flags.join ' '} -Wl,-Map=#{map_file} -o $@ $^ #{formatted_libraries}"
32
+ "#{target}: #{obj_dependencies} #{@linker.script_ || ''} | #{Comet::TMPDIR}",
33
+ "\t#{clang_link} #{formatted_script} #{formatted_flags.join ' '} -Wl,-Map=#{map_file} -o $@ #{obj_dependencies} #{formatted_libraries}"
32
34
  ]
33
35
  end
34
36
 
data/lib/comet/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Comet
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  end
@@ -23,7 +23,7 @@ test/linux_x86: .comet/8030c3912f57888f83ad.phony
23
23
  $(COMET_CP) .comet/e7b25529bcd9f873ade7.bin bin/test_linux_x64.bin
24
24
  $(COMET_CP) .comet/e542f5d8ea9b413c1db8.map bin/test_linux_x86.map
25
25
  .comet/e542f5d8ea9b413c1db8.elf: .comet/ae8d70c4ad166e5f05e6.s | .comet
26
- $(COMET_LD) --target=x86-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/e542f5d8ea9b413c1db8.map -o $@ $^
26
+ $(COMET_LD) --target=x86-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/e542f5d8ea9b413c1db8.map -o $@ .comet/ae8d70c4ad166e5f05e6.s
27
27
  .comet/ae8d70c4ad166e5f05e6.s: .comet/1a6fa701e7f59b5130cf.ll | .comet
28
28
  $(COMET_OPT) -S -Ofast --target=x86-unknown-linux-gnu -march=skylake -mcpu=skylake -o $@ $<
29
29
  .comet/1a6fa701e7f59b5130cf.ll: .comet/848a630ef53895b3e139.ll .comet/44b0462bd14ef6c5f324.ll .comet/3e98d572194d9f0797c2.ll | .comet
@@ -41,7 +41,7 @@ test/linux_x86: .comet/8030c3912f57888f83ad.phony
41
41
  $(COMET_CP) .comet/9dc94950d9e3e85125d8.elf bin/test_linux_x64.elf
42
42
  $(COMET_CP) .comet/9dc94950d9e3e85125d8.map bin/test_linux_x64.map
43
43
  .comet/9dc94950d9e3e85125d8.elf: .comet/c8008c83512b753cc0f5.s | .comet
44
- $(COMET_LD) --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/9dc94950d9e3e85125d8.map -o $@ $^
44
+ $(COMET_LD) --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/9dc94950d9e3e85125d8.map -o $@ .comet/c8008c83512b753cc0f5.s
45
45
  .comet/c8008c83512b753cc0f5.s: .comet/5b532eac405115700e15.ll | .comet
46
46
  $(COMET_OPT) -S -O3 --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -o $@ $<
47
47
  .comet/5b532eac405115700e15.ll: .comet/4b993a43966c8f84b121.ll .comet/29c2bb990093d697ea4f.ll .comet/1872519e0f2a83f8c783.ll | .comet
@@ -54,4 +54,4 @@ test/linux_x86: .comet/8030c3912f57888f83ad.phony
54
54
  $(COMET_CC) -x c --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -S -flto -Isrc -Iinclude -std=c89 -o $@ -c $<
55
55
  .PHONY: clean
56
56
  clean:
57
- $(COMET_RM) -rf .comet
57
+ $(COMET_RM) -rf .comet
@@ -1,10 +1,10 @@
1
1
  COMET_LN ?= ln
2
2
  COMET_RM ?= rm
3
3
  .PHONY: all
4
- all:
4
+ all:
5
5
  .PHONY: .comet
6
6
  .comet:
7
7
  if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
8
8
  .PHONY: clean
9
9
  clean:
10
- $(COMET_RM) -rf .comet
10
+ $(COMET_RM) -rf .comet
@@ -2,4 +2,4 @@ COMET_LN ?= ln
2
2
  $(error Circular dependency involving `foo' detected)
3
3
  .PHONY: .comet
4
4
  .comet:
5
- if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
5
+ if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
@@ -2,4 +2,4 @@ COMET_LN ?= ln
2
2
  $(error No build file 'comet.rb' found)
3
3
  .PHONY: .comet
4
4
  .comet:
5
- if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
5
+ if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
@@ -2,4 +2,4 @@ COMET_LN ?= ln
2
2
  $(error Circular dependency involving `foo' detected)
3
3
  .PHONY: .comet
4
4
  .comet:
5
- if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
5
+ if [ ! -d "$@" ] || [ ! -d "`readlink .comet`" ]; then $(COMET_LN) -sf `mktemp -d` $@; fi
@@ -18,7 +18,7 @@ main/linux_x64: .comet/116dd1901deffe3fa447.phony
18
18
  .comet/116dd1901deffe3fa447.phony: .comet/457234dc02f9dfb5542f.elf
19
19
  $(COMET_CP) .comet/457234dc02f9dfb5542f.elf main
20
20
  .comet/457234dc02f9dfb5542f.elf: .comet/ccb40296b80a66398214.s | .comet
21
- $(COMET_LD) --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/457234dc02f9dfb5542f.map -o $@ $^
21
+ $(COMET_LD) --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -Wl,-Map=.comet/457234dc02f9dfb5542f.map -o $@ .comet/ccb40296b80a66398214.s
22
22
  .comet/ccb40296b80a66398214.s: .comet/93cf4b5489860f6a6154.ll | .comet
23
23
  $(COMET_OPT) -S -O1 --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -o $@ $<
24
24
  .comet/93cf4b5489860f6a6154.ll: .comet/02c92d481320c450e153.ll | .comet
@@ -27,4 +27,4 @@ main/linux_x64: .comet/116dd1901deffe3fa447.phony
27
27
  $(COMET_CC) -x c --target=x86_64-unknown-linux-gnu -march=skylake -mcpu=skylake -S -flto -I. -o $@ -c $<
28
28
  .PHONY: clean
29
29
  clean:
30
- $(COMET_RM) -rf .comet
30
+ $(COMET_RM) -rf .comet
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comet-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Beneteau