mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Fixed cross-compilation flag for x86-64 macOS compilation
This commit is contained in:
parent
e74e08fa4f
commit
46131cde74
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
CC=clang
|
CC=clang
|
||||||
COMMON_FLAGS=-g2 -std=gnu99 -fstack-protector-all -Wno-error=implicit-function-declaration -arch X86_64
|
COMMON_FLAGS=-g2 -std=gnu99 -fstack-protector-all -Wno-error=implicit-function-declaration -arch x86_64
|
||||||
PROD_FLAGS=$(COMMON_FLAGS) -DLAMA_ENV
|
PROD_FLAGS=$(COMMON_FLAGS) -DLAMA_ENV
|
||||||
TEST_FLAGS=$(COMMON_FLAGS) -DDEBUG_VERSION
|
TEST_FLAGS=$(COMMON_FLAGS) -DDEBUG_VERSION
|
||||||
UNIT_TESTS_FLAGS=$(TEST_FLAGS)
|
UNIT_TESTS_FLAGS=$(TEST_FLAGS)
|
||||||
|
|
|
||||||
|
|
@ -1350,7 +1350,7 @@ let build cmd prog =
|
||||||
cmd#dump_file "i" (Interface.gen prog);
|
cmd#dump_file "i" (Interface.gen prog);
|
||||||
let inc = get_std_path () in
|
let inc = get_std_path () in
|
||||||
let compiler = "clang" in
|
let compiler = "clang" in
|
||||||
let flags = "-pie -arch X86_64" in
|
let flags = "-pie -arch x86_64" in
|
||||||
match cmd#get_mode with
|
match cmd#get_mode with
|
||||||
| `Default ->
|
| `Default ->
|
||||||
let objs = find_objects (fst @@ fst prog) cmd#get_include_paths in
|
let objs = find_objects (fst @@ fst prog) cmd#get_include_paths in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue