[compiler-rt] r221952 - [Profile] Always build profile runtime library with -fPIC.
Alexey Samsonov
vonosmas at gmail.com
Thu Nov 13 16:16:26 PST 2014
Author: samsonov
Date: Thu Nov 13 18:16:26 2014
New Revision: 221952
URL: http://llvm.org/viewvc/llvm-project?rev=221952&view=rev
Log:
[Profile] Always build profile runtime library with -fPIC.
This change removes libclang_rt.profile-pic-<arch>.a version of
profile runtime. Instead, it's sufficient to always build
libclang_rt.profile-<arch>.a with -fPIC, as it can be linked into
both executables and shared objects.
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=221952&r1=221951&r2=221952&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Thu Nov 13 18:16:26 2014
@@ -17,13 +17,9 @@ if(APPLE)
else()
foreach(arch ${PROFILE_SUPPORTED_ARCH})
add_compiler_rt_runtime(clang_rt.profile-${arch} ${arch} STATIC
- SOURCES ${PROFILE_SOURCES})
- add_dependencies(profile clang_rt.profile-${arch})
-
- add_compiler_rt_runtime(clang_rt.profile-pic-${arch} ${arch} STATIC
CFLAGS -fPIC
SOURCES ${PROFILE_SOURCES})
- add_dependencies(profile clang_rt.profile-pic-${arch})
+ add_dependencies(profile clang_rt.profile-${arch})
endforeach()
endif()
More information about the llvm-commits
mailing list