Skip to content

Commit 8d241b6

Browse files
committed
context: Restore -fprofile-update=atomic for GCC PGO
Signed-off-by: Ikey Doherty <ikey@solus-project.com>
1 parent 9feb83a commit 8d241b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ypkg2/ypkgcontext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
UNROLL_LOOPS_FLAGS = "-funroll-loops"
4747

4848
# GCC PGO flags
49-
PGO_GEN_FLAGS = "-fprofile-generate -fprofile-dir=\"{}\" "
49+
PGO_GEN_FLAGS = "-fprofile-generate -fprofile-dir=\"{}\" " \
50+
"-fprofile-update=atomic"
5051
PGO_USE_FLAGS = "-fprofile-use -fprofile-dir=\"{}\" -fprofile-correction"
5152

5253
# Clang can handle parameters to the args unlike GCC

0 commit comments

Comments
 (0)