Skip to content

Commit 17c9fb5

Browse files
committed
[compiler-rt] Add -fPIE to compiler-rt profile test lit.cfg
We disable PIE default in a9ac167, the test that use -shared is failing due to it. Add -fPIE to sync with llorg default.
1 parent f6fe3ec commit 17c9fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/profile/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def exclude_unsupported_files_for_aix(dirname):
194194
config.unsupported = True
195195

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

200200
if config.host_os in ["AIX"]:

0 commit comments

Comments
 (0)