[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.
This commit is contained in:
sinan 2023-12-06 17:16:48 +08:00 committed by GitHub
parent 19c9f9c0bf
commit b304873134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ int main() {
/*
REQUIRES: system-linux,bolt-runtime
RUN: %clang %cflags %s -o %t.exe -Wl,-q -nopie -fpie
RUN: %clang %cflags %s -o %t.exe -Wl,-q -no-pie -fpie
RUN: llvm-bolt %t.exe --instrument --instrumentation-file=%t.fdata \
RUN: -o %t.instrumented