-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* meta * range-v3 * cmcstl2 Details: * Modernize cmake a bit, add support for MSVC/clang-cl. * Update CI config from range-v3, add MSVC to appveyor. * C++20-ify requires-clauses. * Armor `Integral` concept against non-constant expressions. * Don't constraint all arguments of the concept implementations of `and_`, `or_`, which causes instantation defeating the short-circuiting. * Implement `and_v` and `or_v` variable template forms of `and_c` and `or_c`. * `detail::count_`: remove unused third template parameter. * Remove `inline v1` namespace.
- Loading branch information
1 parent
9780f35
commit af9318f
Showing
9 changed files
with
3,764 additions
and
2,962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
shallow_clone: true | ||
|
||
image: Visual Studio 2017 | ||
|
||
platform: | ||
- x64_x86 | ||
- x64 | ||
|
||
configuration: | ||
- Debug | ||
- Release | ||
|
||
environment: | ||
matrix: | ||
- CXX: clang-cl | ||
CPP: latest | ||
|
||
- CXX: cl | ||
CPP: latest | ||
|
||
cache: | ||
- C:\ninja-1.8.2 | ||
|
||
install: | ||
- ps: | | ||
if (![IO.File]::Exists("C:\ninja-1.8.2\ninja.exe")) { | ||
Start-FileDownload 'https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip' | ||
7z x -y ninja-win.zip -oC:\ninja-1.8.2 | ||
} | ||
$env:PATH="C:\ninja-1.8.2;$env:PATH" | ||
- for /f "tokens=1* delims=" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath') do call "%%i\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% | ||
- cmake --version | ||
- ninja --version | ||
- clang-cl --version | ||
- cl /Bv || exit 0 | ||
|
||
build_script: | ||
- mkdir build && cd build | ||
- ps: | | ||
$env:CC=$env:CXX | ||
if (($env:CXX -eq "clang-cl") -and (-not ($env:PLATFORM -eq "x64"))) { | ||
$env:CXXFLAGS='-m32' | ||
$env:CFLAGS='-m32' | ||
} | ||
- cmake .. -G Ninja -Wdev -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DMETA_CXX_STD=%CPP% | ||
- ninja -v | ||
|
||
test_script: | ||
- ctest -j2 --output-on-failure | ||
|
||
deploy: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
add_executable(tutorial_snippets tutorial_snippets.cpp) | ||
add_test(example.tutorial_snippets, tutorial_snippets) | ||
target_link_libraries(tutorial_snippets meta) | ||
add_test(example.tutorial_snippets tutorial_snippets) | ||
|
||
add_executable(tuple_cat tuple_cat.cpp) | ||
add_test(example.tuple_cat, tuple_cat) | ||
target_link_libraries(tuple_cat meta) | ||
add_test(example.tuple_cat tuple_cat) |
Oops, something went wrong.