Skip to content

Commit 6c322e6

Browse files
committed
Update external import
1 parent 62eb19d commit 6c322e6

File tree

9,521 files changed

+277571
-144868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,521 files changed

+277571
-144868
lines changed

external_imported/Catch2/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ build:vs2022 --cxxopt=/std:c++17
88

99
build:windows --config=vs2022
1010
build:linux --config=gcc11
11+
build:macos --cxxopt=-std=c++2b

external_imported/Catch2/.github/workflows/linux-bazel-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
compilation_mode: [fastbuild, dbg, opt]
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Mount bazel cache
1717
uses: actions/cache@v3

external_imported/Catch2/.github/workflows/linux-meson-builds.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
other_pkgs: clang-11
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222

2323
- name: Prepare environment
24-
run: sudo apt-get install -y meson ninja-build ${{matrix.other_pkgs}}
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y meson ninja-build ${{matrix.other_pkgs}}
2527
2628
- name: Configure build
2729
env:

external_imported/Catch2/.github/workflows/linux-other-builds.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@ jobs:
2929
build_type: Debug
3030
std: 14
3131
other_pkgs: g++-7
32-
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON
32+
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON -DCATCH_ENABLE_CMAKE_HELPER_TESTS=ON
3333
- cxx: g++-7
3434
build_description: Extras + Examples
3535
build_type: Release
3636
std: 14
3737
other_pkgs: g++-7
38-
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON
38+
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON -DCATCH_ENABLE_CMAKE_HELPER_TESTS=ON
3939

4040
# Extras and examples with Clang-10
4141
- cxx: clang++-10
4242
build_description: Extras + Examples
4343
build_type: Debug
4444
std: 17
4545
other_pkgs: clang-10
46-
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON
46+
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON -DCATCH_ENABLE_CMAKE_HELPER_TESTS=ON
4747
- cxx: clang++-10
4848
build_description: Extras + Examples
4949
build_type: Release
5050
std: 17
5151
other_pkgs: clang-10
52-
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON
52+
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCATCH_BUILD_EXAMPLES=ON -DCATCH_ENABLE_CMAKE_HELPER_TESTS=ON
5353

5454
# Configure tests with Clang-10
5555
- cxx: clang++-10
@@ -70,10 +70,12 @@ jobs:
7070

7171

7272
steps:
73-
- uses: actions/checkout@v2
73+
- uses: actions/checkout@v4
7474

7575
- name: Prepare environment
76-
run: sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
76+
run: |
77+
sudo apt-get update
78+
sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
7779
7880
- name: Configure build
7981
working-directory: ${{runner.workspace}}

external_imported/Catch2/.github/workflows/linux-simple-builds.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
other_pkgs: g++-10
8484

8585
steps:
86-
- uses: actions/checkout@v2
86+
- uses: actions/checkout@v4
8787

8888
- name: Add repositories for older GCC
8989
run: |
@@ -92,7 +92,9 @@ jobs:
9292
if: ${{ matrix.cxx == 'g++-5' || matrix.cxx == 'g++-6' }}
9393

9494
- name: Prepare environment
95-
run: sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
95+
run: |
96+
sudo apt-get update
97+
sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
9698
9799
- name: Configure build
98100
working-directory: ${{runner.workspace}}

external_imported/Catch2/.github/workflows/mac-builds.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
extra_tests: ON
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626

2727
- name: Configure build
2828
working-directory: ${{runner.workspace}}
@@ -42,11 +42,10 @@ jobs:
4242
4343
- name: Build tests + lib
4444
working-directory: ${{runner.workspace}}/build
45-
run: make -j 2
45+
run: make -j `sysctl -n hw.ncpu`
4646

4747
- name: Run tests
4848
env:
4949
CTEST_OUTPUT_ON_FAILURE: 1
5050
working-directory: ${{runner.workspace}}/build
51-
# Hardcode 2 cores we know are there
52-
run: ctest -C ${{matrix.build_type}} -j 2
51+
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`

external_imported/Catch2/.github/workflows/validate-header-guards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010

1111
- name: Checkout source code
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313

1414
- name: Setup Dependencies
1515
uses: actions/setup-python@v2

external_imported/Catch2/.github/workflows/windows-simple-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build_type: [Debug, Release]
1414
std: [14, 17]
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

1818
- name: Configure build
1919
working-directory: ${{runner.workspace}}

external_imported/Catch2/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ expand_template(
4343
"#cmakedefine CATCH_CONFIG_NO_GLOBAL_NEXTAFTER": "",
4444
"#cmakedefine CATCH_CONFIG_NO_POSIX_SIGNALS": "",
4545
"#cmakedefine CATCH_CONFIG_NO_USE_ASYNC": "",
46+
"#cmakedefine CATCH_CONFIG_NO_EXPERIMENTAL_STATIC_ANALYSIS_SUPPORT": "",
4647
"#cmakedefine CATCH_CONFIG_NO_WCHAR": "",
4748
"#cmakedefine CATCH_CONFIG_NO_WINDOWS_SEH": "",
4849
"#cmakedefine CATCH_CONFIG_NOSTDOUT": "",
4950
"#cmakedefine CATCH_CONFIG_POSIX_SIGNALS": "",
5051
"#cmakedefine CATCH_CONFIG_PREFIX_ALL": "",
52+
"#cmakedefine CATCH_CONFIG_PREFIX_MESSAGES": "",
5153
"#cmakedefine CATCH_CONFIG_SHARED_LIBRARY": "",
54+
"#cmakedefine CATCH_CONFIG_EXPERIMENTAL_STATIC_ANALYSIS_SUPPORT": "",
5255
"#cmakedefine CATCH_CONFIG_USE_ASYNC": "",
5356
"#cmakedefine CATCH_CONFIG_WCHAR": "",
5457
"#cmakedefine CATCH_CONFIG_WINDOWS_CRTDBG": "",

external_imported/Catch2/CMake/CatchConfigOptions.cmake

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
macro(AddOverridableConfigOption OptionBaseName)
1919
option(CATCH_CONFIG_${OptionBaseName} "Read docs/configuration.md for details" OFF)
2020
option(CATCH_CONFIG_NO_${OptionBaseName} "Read docs/configuration.md for details" OFF)
21+
mark_as_advanced(CATCH_CONFIG_${OptionBaseName} CATCH_CONFIG_NO_${OptionBaseName})
2122
endmacro()
2223

2324
macro(AddConfigOption OptionBaseName)
2425
option(CATCH_CONFIG_${OptionBaseName} "Read docs/configuration.md for details" OFF)
26+
mark_as_advanced(CATCH_CONFIG_${OptionBaseName})
2527
endmacro()
2628

2729
set(_OverridableOptions
@@ -41,6 +43,7 @@ set(_OverridableOptions
4143
"WCHAR"
4244
"WINDOWS_SEH"
4345
"GETENV"
46+
"EXPERIMENTAL_STATIC_ANALYSIS_SUPPORT"
4447
)
4548

4649
foreach(OptionName ${_OverridableOptions})
@@ -61,18 +64,25 @@ set(_OtherConfigOptions
6164
"FAST_COMPILE"
6265
"NOSTDOUT"
6366
"PREFIX_ALL"
67+
"PREFIX_MESSAGES"
6468
"WINDOWS_CRTDBG"
6569
)
6670

6771

6872
foreach(OptionName ${_OtherConfigOptions})
6973
AddConfigOption(${OptionName})
7074
endforeach()
71-
set(CATCH_CONFIG_SHARED_LIBRARY ${BUILD_SHARED_LIBS})
75+
if(DEFINED BUILD_SHARED_LIBS)
76+
set(CATCH_CONFIG_SHARED_LIBRARY ${BUILD_SHARED_LIBS})
77+
else()
78+
set(CATCH_CONFIG_SHARED_LIBRARY "")
79+
endif()
7280

7381
set(CATCH_CONFIG_DEFAULT_REPORTER "console" CACHE STRING "Read docs/configuration.md for details. The name of the reporter should be without quotes.")
7482
set(CATCH_CONFIG_CONSOLE_WIDTH "80" CACHE STRING "Read docs/configuration.md for details. Must form a valid integer literal.")
7583

84+
mark_as_advanced(CATCH_CONFIG_SHARED_LIBRARY CATCH_CONFIG_DEFAULT_REPORTER CATCH_CONFIG_CONSOLE_WIDTH)
85+
7686
# There is no good way to both turn this into a CMake cache variable,
7787
# and keep reasonable default semantics inside the project. Thus we do
7888
# not define it and users have to provide it as an outside variable.

0 commit comments

Comments
 (0)