Skip to content

Commit b304873

Browse files
authored
[BOLT] Fix a wrong compiler option in test (#74420)
-nopie is an option for OpenBSD, and other linux distribution might report an `unsupported option '-nopie' for target` error.
1 parent 19c9f9c commit b304873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/test/runtime/AArch64/instrumentation-ind-call.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main() {
1414
/*
1515
REQUIRES: system-linux,bolt-runtime
1616
17-
RUN: %clang %cflags %s -o %t.exe -Wl,-q -nopie -fpie
17+
RUN: %clang %cflags %s -o %t.exe -Wl,-q -no-pie -fpie
1818
1919
RUN: llvm-bolt %t.exe --instrument --instrumentation-file=%t.fdata \
2020
RUN: -o %t.instrumented

0 commit comments

Comments
 (0)