[PATCH] D113372: [Driver] Add CLANG_DEFAULT_PIE to emulate GCC --enable-default-pie

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 11 19:22:19 PST 2021


joerg added inline comments.


================
Comment at: clang/CMakeLists.txt:230
 
+option(CLANG_DEFAULT_PIE "Default to -fPIE and -pie (Linux only)" OFF)
+if(CLANG_DEFAULT_PIE)
----------------
This option should really be called something like CLANG_DEFAULT_PIE_ON_LINUX or so. It should be explicit from the name that it only effects that toolchain and not all the various toolchains that support PIE.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113372/new/

https://reviews.llvm.org/D113372



More information about the cfe-commits mailing list