[all-commits] [llvm/llvm-project] 2aca33: Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINU...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Apr 6 20:19:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2aca33baf15926afe2520a06b1427a9894226fd2
      https://github.com/llvm/llvm-project/commit/2aca33baf15926afe2520a06b1427a9894226fd2
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/docs/ReleaseNotes.rst
    M clang/test/Driver/hip-fpie-option.hip
    M lldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/TestUnambiguousTailCalls.py
    M lldb/test/Shell/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test
    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:
  -----------
  Reland "[Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON""

(The upgrade of the ppc64le bot and D121257 have fixed compiler-rt failures. Tested by nemanjai.)

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 may be removed in the future.

Differential Revision: https://reviews.llvm.org/D120305




More information about the All-commits mailing list