From e74e08fa4ff8612a2db308915a6d911fc13bf42c Mon Sep 17 00:00:00 2001 From: Egor Sheremetov Date: Wed, 15 May 2024 11:48:12 +0300 Subject: [PATCH] Changed cross-compilation flag for x86-64 macOS compilation --- runtime/Makefile | 2 +- src/X86.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Makefile b/runtime/Makefile index 262193c14..aae1c0c0d 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -1,5 +1,5 @@ CC=clang -COMMON_FLAGS=-g2 -std=gnu99 -fstack-protector-all -Wno-error=implicit-function-declaration -target X86_64-apple-macho +COMMON_FLAGS=-g2 -std=gnu99 -fstack-protector-all -Wno-error=implicit-function-declaration -arch X86_64 PROD_FLAGS=$(COMMON_FLAGS) -DLAMA_ENV TEST_FLAGS=$(COMMON_FLAGS) -DDEBUG_VERSION UNIT_TESTS_FLAGS=$(TEST_FLAGS) diff --git a/src/X86.ml b/src/X86.ml index 56c192b33..3bc142ab2 100644 --- a/src/X86.ml +++ b/src/X86.ml @@ -1350,7 +1350,7 @@ let build cmd prog = cmd#dump_file "i" (Interface.gen prog); let inc = get_std_path () in let compiler = "clang" in - let flags = "-pie -target X86_64-apple-macho" in + let flags = "-pie -arch X86_64" in match cmd#get_mode with | `Default -> let objs = find_objects (fst @@ fst prog) cmd#get_include_paths in