mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Make etl_profile Incompatible by Default (#1535)
* Make etl_profile Incompatible by Default * Configure etl_profile for CI Execution of Tests * Update _index.md * Update _index.md * Cherry pick the Docker fixes for PowerPC (#1563) Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com> --------- Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com> Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de> Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
This commit is contained in:
parent
ffd64f374b
commit
82e41547bb
4
.github/workflows/bazel-gcc-c++23-no-stl.yml
vendored
4
.github/workflows/bazel-gcc-c++23-no-stl.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6.0.3
|
- uses: actions/checkout@v6.0.3
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bazel build //test:etl_tests --cxxopt=-std=c++23 --copt=-DETL_NO_STL
|
run: bazel build //test:etl_tests --cxxopt=-std=c++23 --copt=-DETL_NO_STL --//:etl_profile=//:no_profile
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bazel test //test:etl_tests --cxxopt=-std=c++23 --copt=-DETL_NO_STL --test_output=all
|
run: bazel test //test:etl_tests --cxxopt=-std=c++23 --copt=-DETL_NO_STL --//:etl_profile=//:no_profile --test_output=all
|
||||||
|
|||||||
13
BUILD.bazel
13
BUILD.bazel
@ -20,14 +20,23 @@ package(default_visibility = ["//visibility:public"])
|
|||||||
# strip_include_prefix = ".",
|
# strip_include_prefix = ".",
|
||||||
# )
|
# )
|
||||||
#
|
#
|
||||||
# The default is empty, so ETL's built-in defaults are used unless overridden.
|
# The default of this label_flag is incompatible. This makes sure that the consumer
|
||||||
|
# explicitly sets a profile, even if it is the `no_profile` defined below.
|
||||||
|
|
||||||
label_flag(
|
label_flag(
|
||||||
name = "etl_profile",
|
name = "etl_profile",
|
||||||
build_setting_default = ":no_profile",
|
build_setting_default = ":incompatible_profile",
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(name = "no_profile")
|
cc_library(name = "no_profile")
|
||||||
|
|
||||||
|
cc_library(
|
||||||
|
name = "incompatible_profile",
|
||||||
|
target_compatible_with = [
|
||||||
|
"@platforms//:incompatible",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "etl",
|
name = "etl",
|
||||||
hdrs = glob(["include/**/*.h"]),
|
hdrs = glob(["include/**/*.h"]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user