blob: 5960d2a3023b75f719a02f6e89ba5a59a5fd62ee [file] [log] [blame]
"""This module provides common build config options"""
_default_copts = select({
"//build_config:windows_x86_64": [
"/std:c++17",
],
"//conditions:default": [
"-std=c++17",
"-fno-strict-aliasing",
],
})
_strings_hdrs = select({
"//build_config:windows_x86_64": ["strings/string_util_win.h"],
"//conditions:default": ["strings/string_util_posix.h"],
})
_url_linkopts = select({
"//build_config:with_system_icu": ["-licuuc"],
"//conditions:default": [],
})
build_config = struct(
default_copts = _default_copts,
url_linkopts = _url_linkopts,
strings_hdrs = _strings_hdrs,
)