Skip to content

Commit f12c754

Browse files
committed
compiler-rt/test: Bring back -pie on Android.
Looks like the sanitizer-x86_64-linux-android bot started failing because -pie is still needed when targeting API levels < 16 (which is the case by default for arm and i686). llvm-svn: 351270
1 parent 42d9950 commit f12c754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/lit.common.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if config.asan_shadow_scale != '':
5959
# is a transitive shared library dependency (via asan runtime).
6060
if config.android:
6161
# Prepend the flag so that it can be overridden.
62-
config.target_cflags = "-fuse-ld=gold " + config.target_cflags
62+
config.target_cflags = "-pie -fuse-ld=gold " + config.target_cflags
6363
config.cxx_mode_flags.append('-stdlib=libstdc++')
6464

6565
# Clear some environment variables that might affect Clang.

0 commit comments

Comments
 (0)