[compiler-rt] r184798 - Remove the sysroot restriction from building GCDAProfiling.c.

Chandler Carruth chandlerc at gmail.com
Mon Jun 24 17:37:28 PDT 2013


Author: chandlerc
Date: Mon Jun 24 19:37:28 2013
New Revision: 184798

URL: http://llvm.org/viewvc/llvm-project?rev=184798&view=rev
Log:
Remove the sysroot restriction from building GCDAProfiling.c.

We really need the C standard library to be available to implement the
profiling runtime library reasonably, and replicating everything in the
SDKs tree really isn't addressing any problems we have. Notably, all of
the sanitizer runtimes take the same approach, and this isn't a library
which could end up in a bootstrapping problem where the system headers
aren't even available.

This will hopefully prevent subsequent changes which start using various
other bits of C standard library to make things more debuggable.

Modified:
    compiler-rt/trunk/lib/profile/CMakeLists.txt

Modified: compiler-rt/trunk/lib/profile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/CMakeLists.txt?rev=184798&r1=184797&r2=184798&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Mon Jun 24 19:37:28 2013
@@ -6,11 +6,11 @@ filter_available_targets(PROFILE_SUPPORT
 if(APPLE)
   add_compiler_rt_osx_static_runtime(clang_rt.profile_osx
     ARCH ${PROFILE_SUPPORTED_ARCH}
-    SOURCES ${PROFILE_SOURCES}
-    CFLAGS --sysroot=${COMPILER_RT_DARWIN_SDK_SYSROOT})
+    SOURCES ${PROFILE_SOURCES})
 else()
   foreach(arch ${PROFILE_SUPPORTED_ARCH})
-    add_compiler_rt_static_runtime(clang_rt.profile-${arch} ${arch}
+    add_compiler_rt_static_runtime(clang_rt.profile-${arch}
+      ${arch}
       SOURCES ${PROFILE_SOURCES})
   endforeach()
 endif()





More information about the llvm-commits mailing list