File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# Causes the build to default to the custom toolchain
22build --incompatible_enable_cc_toolchain_resolution
33
4- build --action_env=BAZEL_CXXOPTS='-std=c++14'
4+ # Compile all swift targets and all other codes with C++17 standards
5+ build --@rules_swiftnav//cc:cxx_standard=17
6+ build --@rules_swiftnav//cc:global_cxx_standard=17
57
68build:clang-tidy --aspects @rules_swiftnav//clang_tidy:clang_tidy.bzl%clang_tidy_aspect
79build:clang-tidy --output_groups=report
@@ -23,7 +25,7 @@ common:sanitize --@rules_swiftnav//cc:enable_symbolizer=true
2325# the compiler falls back to a linear register allocator. This
2426# shouldn't cause a sanitizer build to fail.
2527common:sanitize --cxxopt=-Wno-error=disabled-optimization
26- common:sanitize --copt=-Wno-error=disabled-optimization
28+ common:sanitize --copt=-Wno-error=disabled-optimization
2729common:sanitize --linkopt=-Wno-error=disabled-optimization
2830# https://github.com/bazelbuild/bazel/issues/12797#issuecomment-980641064
2931common:sanitize --linkopt='-fsanitize-link-c++-runtime'
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ project(libsbp C CXX)
33
44set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /cmake" "${CMAKE_CURRENT_LIST_DIR} /cmake/common" )
55option (I_KNOW_WHAT_I_AM_DOING_AND_HOW_DANGEROUS_IT_IS__LIBSBP_DISABLE_CRC_VALIDATION "Disable all CRC validation in Libsbp" OFF )
6+ set (SWIFT_CXX_STANDARD 17 CACHE STRING "Default C++ version for all swift targets" )
67
78include (GNUInstallDirs)
89include (CCache)
You can’t perform that action at this time.
0 commit comments