Use 'RC_XBS' instead of 'RC_BUILDIT' to catch all times when it's built in the Apple...
[oota-llvm.git] / tools / lto / Makefile
index 3610fed03baccbd555ef7063a2ca016cf4f2aa96..ab2e16e5fab625cf22ed892916d96f7240045dd1 100644 (file)
@@ -51,7 +51,7 @@ ifeq ($(HOST_OS),Darwin)
     endif
 
     # If we're doing an Apple-style build, add the LTO object path.
-    ifeq ($(RC_BUILDIT),YES)
+    ifeq ($(RC_XBS),YES)
        TempFile        := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/llvm-lto.XXXXXX)
        LLVMLibsOptions := $(LLVMLibsOptions) \
                           -Wl,-object_path_lto -Wl,$(TempFile)