From b304873134e82054b18eb64d5c292d2ff06835b8 Mon Sep 17 00:00:00 2001 From: sinan Date: Wed, 6 Dec 2023 17:16:48 +0800 Subject: [PATCH] [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. --- bolt/test/runtime/AArch64/instrumentation-ind-call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/test/runtime/AArch64/instrumentation-ind-call.c b/bolt/test/runtime/AArch64/instrumentation-ind-call.c index 76ee8c05dd29..f9056da333b4 100644 --- a/bolt/test/runtime/AArch64/instrumentation-ind-call.c +++ b/bolt/test/runtime/AArch64/instrumentation-ind-call.c @@ -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