MozillaFirefox/fix-gcc-pgo.patch

13 lines
522 B
Diff

--- ./build/pgo/profileserver.py 2020-12-02 15:34:46.453053287 +0100
+++ ./build/pgo/profileserver.py 2020-12-02 15:34:57.988970433 +0100
@@ -203,7 +203,8 @@
sys.exit(1)
llvm_profdata = env.get('LLVM_PROFDATA')
- if llvm_profdata:
+ cc = env.get('CC')
+ if llvm_profdata and not 'gcc' in cc:
profraw_files = glob.glob('*.profraw')
if not profraw_files:
print('Could not find profraw files in the current directory: %s' % os.getcwd())