[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON
authorFangrui Song <i@maskray.me>
Fri, 25 Feb 2022 00:22:12 +0000 (00:22 +0000)
committerFangrui Song <i@maskray.me>
Fri, 25 Feb 2022 00:22:12 +0000 (00:22 +0000)
commit3c4ed02698afec021c6bca80740d1e58e3ee019e
tree41264bbff2bdf2f4096213cd9cbf198093f536b7
parent611122892e6d5813444bdd0e1fbe0a96f6e09779
[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON

Default the option introduced in D113372 to ON to match all(?) major Linux
distros. This matches GCC and improves consistency with Android and linux-musl
which always default to PIE.
Note: CLANG_DEFAULT_PIE_ON_LINUX will be removed in the future.

Reviewed By: thesamesam

Differential Revision: https://reviews.llvm.org/D120305
clang/CMakeLists.txt
clang/docs/ReleaseNotes.rst
clang/test/Driver/hip-fpie-option.hip
llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h