chromiumBeta: Fix a compilation error

LLVM 14 doesn't support those build flags yet
(-no-opaque-pointers is the argument for -Xclang):
error: unknown argument: '-no-opaque-pointers'

Those build flags were added in the following commit:
003067c130
This commit is contained in:
Michael Weiss 2022-04-30 18:39:57 +02:00
parent 686ab12ca5
commit 7f684c2ba0
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -166,6 +166,10 @@ let
# Workaround/fix for https://bugs.chromium.org/p/chromium/issues/detail?id=1313361:
substituteInPlace BUILD.gn \
--replace '"//infra/orchestrator:orchestrator_all",' ""
# Disable build flags that require LLVM 15:
substituteInPlace build/config/compiler/BUILD.gn \
--replace '"-Xclang",' "" \
--replace '"-no-opaque-pointers",' ""
'' + ''
# remove unused third-party
for lib in ${toString gnSystemLibraries}; do