[all-commits] [llvm/llvm-project] 3c4ed0: [Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Feb 24 16:22:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c4ed02698afec021c6bca80740d1e58e3ee019e
      https://github.com/llvm/llvm-project/commit/3c4ed02698afec021c6bca80740d1e58e3ee019e
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-25 (Fri, 25 Feb 2022)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/docs/ReleaseNotes.rst
    M clang/test/Driver/hip-fpie-option.hip
    M llvm/utils/gn/secondary/clang/include/clang/Config/BUILD.gn
    M utils/bazel/llvm-project-overlay/clang/include/clang/Config/config.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list