fix build failure on rhel8

This commit is contained in:
Than Ngo 2023-04-06 17:52:21 +02:00
parent c6b27f0a7a
commit d71eb0d4d4
1 changed files with 6 additions and 0 deletions

View File

@ -1121,6 +1121,12 @@ CHROMIUM_CORE_GN_DEFINES+=' use_gold=false'
CHROMIUM_CORE_GN_DEFINES+=' target_cpu="arm64"'
%endif
# clang =< 14 and C++20, linker errors std::u16string
# build failure on rhel8
%if 0%{?rhel} == 8
CHROMIUM_CORE_GN_DEFINES+=' use_cxx17=true'
%endif
CHROMIUM_CORE_GN_DEFINES+=' icu_use_data_file=true'
CHROMIUM_CORE_GN_DEFINES+=' target_os="linux"'
CHROMIUM_CORE_GN_DEFINES+=' current_os="linux"'