[flang-commits] [clang] [flang] [llvm] [clang] Switch to Default PIE on FreeBSD (PR #206139)

Fangrui Song via flang-commits flang-commits at lists.llvm.org
Mon Jul 20 01:39:00 PDT 2026


================
@@ -134,9 +134,8 @@ void freebsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   const Driver &D = ToolChain.getDriver();
   const llvm::Triple &Triple = ToolChain.getTriple();
   const llvm::Triple::ArchType Arch = ToolChain.getArch();
-  const bool IsPIE =
-      !Args.hasArg(options::OPT_shared) &&
-      (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault(Args));
----------------
MaskRay wrote:

Pushed 1ad0e6989597f550e1a5b53abd889366b65aa6c7 to fix `-pie` suppression  ; you'll need to rebase

https://github.com/llvm/llvm-project/pull/206139


More information about the flang-commits mailing list