From e8addfe3092ce3931f4f72c4f1c7fc149e495630 Mon Sep 17 00:00:00 2001 From: inference Date: Sun, 19 Jun 2022 18:19:10 +0100 Subject: [PATCH] Specify common flags and linker flags. --- portage/env/chromium.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/portage/env/chromium.conf b/portage/env/chromium.conf index 561eab2..86b10be 100644 --- a/portage/env/chromium.conf +++ b/portage/env/chromium.conf @@ -1,2 +1,10 @@ +## Common flags. +CFLAGS="-march=znver1 -O2 -pipe -flto=full -U__gnu_linux__" +CXXFLAGS="-march=znver1 -O2 -pipe -flto=full" + +## Linker flags. +LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind" + +## GN flags. EXTRA_GN="target_os=\"linux\" target_cpu=\"x64\" is_official_build=true use_cfi_cast=true is_component_build=false is_debug=false ffmpeg_branding=\"Chrome\" proprietary_codecs=true symbol_level=0 blink_symbol_level=0 enable_resource_allowlist_generation=false enable_remoting=false enable_nacl=false disable_fieldtrial_testing_config=true" CHROMIUM_FORCE_LIBCXX=yes