Use 'RC_XBS' instead of 'RC_BUILDIT' to catch all times when it's built in the Apple...
[oota-llvm.git] / runtime / libprofile / Makefile
index 6e9225382a9e724f041b4ebfbbcda548117dd1da..44ea204bcf560bad314e2b8c8873701b41d678d1 100644 (file)
@@ -50,7 +50,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/profile_rt-lto.XXXXXX)
        LLVMLibsOptions    := $(LLVMLibsOptions) \
                              -Wl,-object_path_lto -Wl,$(TempFile)