aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules2
-rw-r--r--tools/lto/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index f0c542b7f8..ddc214b2c9 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -652,7 +652,7 @@ else
endif
ifeq ($(RC_XBS),YES)
TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/llvm-lto.XXXXXX)
- LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile)
+ LD.Flags += -Wl,-object_path_lto -Wl,$(TempFile) -Wl,-mllvm,-disable-fp-elim
endif
endif
endif
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index ab2e16e5fa..590b90cdb4 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -54,6 +54,6 @@ ifeq ($(HOST_OS),Darwin)
ifeq ($(RC_XBS),YES)
TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/llvm-lto.XXXXXX)
LLVMLibsOptions := $(LLVMLibsOptions) \
- -Wl,-object_path_lto -Wl,$(TempFile)
+ -Wl,-object_path_lto -Wl,$(TempFile) -Wl,-mllvm,-disable-fp-elim
endif
endif