File tree Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Expand file tree Collapse file tree 5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ ifneq ($(BUILD_ENV_),MSVC)
52
52
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end $(excluded_tests)
53
53
endif
54
54
55
+ build_goto_binaries :
56
+ uname -m | grep x86_64
57
+ cd arch_flags_mcpu_bad ; $(exe ) -c source.c -o object.intel
58
+ cd arch_flags_mcpu_good ; \
59
+ $(exe ) -o object.arm --native-compiler=arm-none-eabi-gcc -mcpu=cortex-a15 -c source.c
60
+ cd arch_flags_mthumb_bad ; $(exe ) -c source.c -o object.intel
61
+ cd arch_flags_mthumb_good ; \
62
+ $(exe ) -o object.arm --native-compiler=arm-none-eabi-gcc -mthumb -c source.c
63
+
55
64
clean :
56
65
find . -name ' *.out' -execdir $(RM ) ' {}' \;
57
66
find . -name ' *.gb' -execdir $(RM ) ' {}' \;
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ on a 64-bit platform:
13
13
14
14
goto-cc -c source.c -o object.intel
15
15
16
+ Use `make build_goto_binaries` in the parent directory to run the above for this
17
+ and all other directories containing binaries.
18
+
16
19
preproc.i is already pre-processed so that it can be linked in without
17
20
needing to invoke a pre-processor from a cross-compile toolchain on your
18
21
local machine. Linking it together with the Intel object file, while
Original file line number Diff line number Diff line change 23
23
24
24
which will install arm-none-eabi-gcc (amongst other things).
25
25
26
+ Use `make build_goto_binaries` in the parent directory to run the above for this
27
+ and all other directories containing binaries.
28
+
26
29
preproc.i is already pre-processed so that it can be linked in without
27
30
needing to invoke a pre-processor from a cross-compile toolchain on your
28
31
local machine. Linking it together with the ARM object file, while
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ file 'object.intel' was compiled from 'source.c' with goto-cc on a
13
13
14
14
goto-cc -c source.c -o object.intel
15
15
16
+ Use `make build_goto_binaries` in the parent directory to run the above for this
17
+ and all other directories containing binaries.
18
+
16
19
preproc.i is already pre-processed so that it can be linked in without
17
20
needing to invoke a pre-processor from a cross-compile toolchain on your
18
21
local machine. Linking it together with the Intel object file, while
Original file line number Diff line number Diff line change 23
23
24
24
which will install arm-none-eabi-gcc (amongst other things).
25
25
26
+ Use `make build_goto_binaries` in the parent directory to run the above for this
27
+ and all other directories containing binaries.
28
+
26
29
preproc.i is already pre-processed so that it can be linked in without
27
30
needing to invoke a pre-processor from a cross-compile toolchain on your
28
31
local machine. Linking it together with the ARM object file, while
You can’t perform that action at this time.
0 commit comments