summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-06-11 23:59:24 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-06-11 23:59:24 +0000
commite3568b4b3d922e623c61eacf5d6924be05b522e8 (patch)
tree64e210b26b6b8cbe661841960aa011bc52cb77bb /clang/lib/Frontend/CompilerInvocation.cpp
parentd1c2302fc5814f3f6d6dff42e1ba7fbc200c2332 (diff)
downloadbcm5719-llvm-e3568b4b3d922e623c61eacf5d6924be05b522e8.tar.gz
bcm5719-llvm-e3568b4b3d922e623c61eacf5d6924be05b522e8.zip
build: use POSITION_INDEPENDENT_CODE CMake property
Use the POSITION_INDEPENDENT_CODE target property to indicate that we should be building with -fPIC or the equivalent flag based on the toolchain that we are using. This makes the check more portable and simplifies the flags management. Because we don't want this setting to propagate in the case of an in-tree build, set the property on the targets we construct explicitly rather than setting CMAKE_POSITION_INDEPENDENT_CODE to ON globally. llvm-svn: 305174
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud