Skip to content

Commit

Permalink
[compiler-rt] Add -fPIE to compiler-rt profile test lit.cfg
Browse files Browse the repository at this point in the history
We disable PIE default in
intel@a9ac167,
the test that use -shared is failing due to it.
Add -fPIE to sync with llorg default.
  • Loading branch information
jsji committed Jan 10, 2025
1 parent f6fe3ec commit 17c9fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/test/profile/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def exclude_unsupported_files_for_aix(dirname):
config.unsupported = True

config.substitutions.append(
("%shared_lib_flag", "-dynamiclib" if (config.host_os == "Darwin") else "-shared")
("%shared_lib_flag", "-dynamiclib" if (config.host_os == "Darwin") else "-shared -fPIE") # INTEL
)

if config.host_os in ["AIX"]:
Expand Down

0 comments on commit 17c9fb5

Please sign in to comment.