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 +4 -4
- data/lib/comet/makefile.rb +2 -1
- data/lib/comet/rules/link.rb +4 -2
- data/lib/comet/version.rb +1 -1
- data/spec/comet/complex_c_program/Makefile +3 -3
- data/spec/comet/empty_build_file/Makefile +2 -2
- data/spec/comet/nested_circular_reference/Makefile +1 -1
- data/spec/comet/no_build_file/Makefile +1 -1
- data/spec/comet/self_referential/Makefile +1 -1
- data/spec/comet/simple_c_program/Makefile +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9162a2dc4bc62ea97f9b8411ddab3fff3ff49bb
|
4
|
+
data.tar.gz: '093a32b3f660ada542d2238b1825d173922aa725'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9108c92b2713c45d661cc44acaa0f5122d8d1d75b22724c3ed968d0b8eea024d50322e1a12e2438155fba3166a2ecaac504992c9ac7577bb7cef96caf802178
|
7
|
+
data.tar.gz: 5c4d1c9cc942266ab8d084245aafa620f7d5b68d46e354d900bebf82d602299c969884f71b79e20f6d922df9ded931df059f304784d0d153eb134559a6de005f
|
data/lib/comet/makefile.rb
CHANGED
data/lib/comet/rules/link.rb
CHANGED
@@ -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}: #{
|
31
|
-
"\t#{clang_link} #{formatted_script} #{formatted_flags.join ' '} -Wl,-Map=#{map_file} -o $@
|
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
@@ -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
|
@@ -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 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
|