srctree

Robin Linden parent 07065d57 a29fa8c1
build: Use the same copts for host and target compilation

This is needed to update to icu 75.1 as it now requires C++17.

inlinesplit
.bazelrc added: 19, removed: 11, total 8
@@ -27,15 +27,19 @@ build --incompatible_enforce_config_setting_visibility
# not relying on transitive dependencies, so let's enable that!
build:linux --features=layering_check
 
build:linux --cxxopt='-std=c++2b'
build:linux --cxxopt='-fno-rtti'
build:linux --cxxopt='-std=c++2b'
build:linux --host_cxxopt='-std=c++2b'
build:linux --cxxopt='-fno-rtti'
build:linux --host_cxxopt='-fno-rtti'
 
build:macos --apple_crosstool_top=@local_config_apple_cc//:toolchain
build:macos --crosstool_top=@local_config_apple_cc//:toolchain
build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain
build:macos --features=layering_check
build:macos --cxxopt='-std=c++2b'
build:macos --cxxopt='-fno-rtti'
build:macos --cxxopt='-std=c++2b'
build:macos --host_cxxopt='-std=c++2b'
build:macos --cxxopt='-fno-rtti'
build:macos --host_cxxopt='-fno-rtti'
 
# Force DWARF-4 format for debug symbols for compatibility with valgrind.
# See: https://bugs.kde.org/show_bug.cgi?id=452758
@@ -44,12 +48,16 @@ build:linux --copt='-gdwarf-4'
build:windows --enable_runfiles
build:windows --action_env=LOCALAPPDATA # Quirk for running vswhere, remove when icu no-longer needed
build:windows --action_env=ProgramData # Quirk for running vswhere, remove when icu no-longer needed
build:windows --cxxopt='/std:c++latest'
build:windows --cxxopt='/GR-' # Disable rtti.
build:windows --copt='/permissive-' # Conform to the standard.
build:windows --copt='/Zc:__cplusplus' # Report the real supported C++ version, not just C++98.
build:windows --copt='-utf-8' # Use UTF-8 as the source and execution character sets.
build:windows --host_copt='-utf-8' # Use UTF-8 as the source and execution character sets.
build:windows --cxxopt='/std:c++latest'
build:windows --host_cxxopt='/std:c++latest'
build:windows --cxxopt='/GR-' # Disable rtti.
build:windows --host_cxxopt='/GR-'
build:windows --copt='/permissive-' # Conform to the standard.
build:windows --host_copt='/permissive-'
build:windows --copt='/Zc:__cplusplus' # Report the real supported C++ version, not just C++98.
build:windows --host_copt='/Zc:__cplusplus'
build:windows --copt='-utf-8' # Use UTF-8 as the source and execution character sets.
build:windows --host_copt='-utf-8'
 
# Special build options
# =========================================================