|
15 | 15 | end |
16 | 16 |
|
17 | 17 | system_compiler() = gcc |
18 | | -bitness_flag() = Int == Int32 ? "-m32" : "-m64" |
| 18 | +bitness_flag() = Sys.ARCH == :aarch64 ? `` : Int == Int32 ? "-m32" : "-m64" |
19 | 19 | executable_ext() = (iswindows() ? ".exe" : "") |
20 | 20 |
|
21 | 21 | function mingw_dir(folders...) |
@@ -171,15 +171,15 @@ function build_julia_cmd( |
171 | 171 | sysimage == nothing || (julia_cmd.exec[3] = "-J$sysimage") |
172 | 172 | push!(julia_cmd.exec, string("--startup-file=", startupfile ? "yes" : "no")) |
173 | 173 | compile == nothing || (julia_cmd.exec[4] = "--compile=$compile") |
174 | | - cpu_target == nothing || (julia_cmd.exec[2] = "-C$cpu_target"; |
175 | | - push!(julia_cmd.exec, "--precompiled=no"); |
176 | | - push!(julia_cmd.exec, "--compilecache=no")) |
| 174 | + cpu_target == nothing || (julia_cmd.exec[2] = "-C$cpu_target";) |
177 | 175 | optimize == nothing || push!(julia_cmd.exec, "-O$optimize") |
178 | 176 | debug == nothing || push!(julia_cmd.exec, "-g$debug") |
179 | 177 | inline == nothing || push!(julia_cmd.exec, "--inline=$inline") |
180 | 178 | check_bounds == nothing || push!(julia_cmd.exec, "--check-bounds=$check_bounds") |
181 | 179 | math_mode == nothing || push!(julia_cmd.exec, "--math-mode=$math_mode") |
182 | 180 | depwarn == nothing || (julia_cmd.exec[5] = "--depwarn=$depwarn") |
| 181 | + push!(julia_cmd.exec, "--precompiled=no"); |
| 182 | + push!(julia_cmd.exec, "--compilecache=no") |
183 | 183 | julia_cmd |
184 | 184 | end |
185 | 185 |
|
|
0 commit comments