Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add selection of std/nonstd version to batch scripts #52

Open
martinmoene opened this issue Mar 7, 2021 · 0 comments
Open

Add selection of std/nonstd version to batch scripts #52

martinmoene opened this issue Mar 7, 2021 · 0 comments

Comments

@martinmoene
Copy link
Owner

Add selection of std/nonstd version to batch scripts.

See e.g. jthread-lite t.bat:

set std=c++14
if NOT "%1" == "" set std=%1 & shift

set select_jthread=jthread_CONFIG_SELECT_JTHREAD_NONSTD
if NOT "%1" == "" set select_jthread=%1 & shift

set args=%1 %2 %3 %4 %5 %6 %7 %8 %9

call :CompilerVersion version
echo VC%version%: %std% %select_jthread% %args%

set unit_config=^
    -Djthread_JTHREAD_HEADER=\"nonstd/jthread.hpp\" ^
    -Djthread_TEST_NODISCARD=1 ^
    -Djthread_CONFIG_SELECT_JTHREAD=%select_jthread%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant