From ae32726fa5439946214f2b8dd069ee43467a8a5d Mon Sep 17 00:00:00 2001 From: Joey Riches Date: Thu, 21 Jun 2018 12:22:58 +0100 Subject: [PATCH] Clang does not support the -fprofile-correction PGO flag See here https://github.com/llvm-mirror/clang/blob/master/test/Driver/clang_f_opts.c#L375 Is the case as of llvm 6 and before. It would be my belief that clang does this automatically. `zstd` is a package that contains a real world example of this warning. --- ypkg2/ypkgcontext.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ypkg2/ypkgcontext.py b/ypkg2/ypkgcontext.py index b68ad21..41ed59e 100644 --- a/ypkg2/ypkgcontext.py +++ b/ypkg2/ypkgcontext.py @@ -55,8 +55,7 @@ # Clang can handle parameters to the args unlike GCC PGO_GEN_FLAGS_CLANG = "-fprofile-instr-generate=\"{}/default-%m.profraw\"" -PGO_USE_FLAGS_CLANG = "-fprofile-instr-use=\"{}/default.profdata\" " \ - "-fprofile-correction" +PGO_USE_FLAGS_CLANG = "-fprofile-instr-use=\"{}/default.profdata\"" # AVX2 AVX2_ARCH = "haswell"