Skip to content

Commit 45e1a38

Browse files
author
Wael Yehia
committed
[PGO] use -fprofile-update=atomic instead of mllvm option in ContinuousSyncMode/set-file-object.c
because on some platforms (e.g. AIX) the compiler adds -latomic to the link step in 32-bit.
1 parent 78ff340 commit 45e1a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: rm -rf %t.dir && mkdir -p %t.dir && cd %t.dir
66

77
// The -mllvm -runtime-counter-relocation=true flag has effect only on linux.
8-
// RUN: %clang -fprofile-instr-generate -fcoverage-mapping -mllvm -instrprof-atomic-counter-update-all=1 -mllvm -runtime-counter-relocation=true -o main.exe %s
8+
// RUN: %clang -fprofile-instr-generate -fcoverage-mapping -fprofile-update=atomic -mllvm -runtime-counter-relocation=true -o main.exe %s
99

1010
// Test continuous mode with __llvm_profile_set_file_object with mergin disabled.
1111
// RUN: env LLVM_PROFILE_FILE="%t.dir/profdir/%c%mprofraw.old" %run %t.dir/main.exe nomerge %t.dir/profdir/profraw.new 2>&1 | FileCheck %s -check-prefix=WARN

0 commit comments

Comments
 (0)