diff --git a/Makefile b/Makefile index 02ddbe8..0950f73 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ TARGETS := $(BUILD_DIR)/hello-linux-64 $(BUILD_DIR)/hello-win64.exe $(BUILD_DIR)/hello-macosx.bin LINUX_CXX := x86_64-linux-gnu-g++ WIN32_CXX := x86_64-w64-mingw32-g++ -MACOSX_CXX := x86_64-apple-darwin19-c++ +MACOSX_CXX := x86_64-apple-darwin19-clang++ endif # WINDOWS version @@ -57,7 +57,9 @@ @echo "Building MacOSX binary..." ls -la /usr/lib/llvm-13/lib || true ls -la /usr/lib/llvm-14/lib || true - $(MACOSX_CXX) $< -o $@ -v -O0 + ls -la /usr/lib/llvm-10/lib || true + $(MACOSX_CXX) $< -o $@ -v || true + $(MACOSX_CXX) $< -o $@ -v -O0 || true $(MACOSX_CXX) $< -o $@ -v -fno-lto -L/usr/lib/llvm-13/lib tidy: $(BUILD_DIR)/tidy.xml