Skip to content

Commit

Permalink
make windows test fewer standards
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 22, 2024
1 parent 1b95525 commit d80e2f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cplusplus/test_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
IN_OSX = system() == 'Darwin'
IN_TERMUX = bool(which('termux-setup-storage'))
IN_LINUX = (not IN_TERMUX) and (system() == 'Linux')
STANDARDS = ('c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++20')
if system() == 'Windows':
STANDARDS = ('c++14', 'c++17', 'c++20')
else:
STANDARDS = ('c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++20')

if IN_TERMUX:
BUILD_FOLDER = Path.home().joinpath('build') # Termux can't make executable files outside of $HOME
Expand Down Expand Up @@ -146,9 +149,8 @@
f'CLANG+{std}': CLANG_TEMPLATE.format('clang', CLANG_LINK_MATH, CLANG_ARCH, std, '-DAMD_COMPILER=0'),
f'ICC+{std}': GCC_TEMPLATE.format('icc', std),
f'AOCC+{std}': CLANG_TEMPLATE.format(AOCC_BINARY, CLANG_LINK_MATH, CLANG_ARCH, std, '-DAMD_COMPILER=1'),
f'CL+{std}': "cl -Fe:{{1}} -Fo{}\\ /std:{} -O2 -GL -GF -GW -Brepro -TC {{0}}".format(BUILD_FOLDER.joinpath('objs'), std)
})
if std in ('c++14', 'c++17', 'c++20'):
templates[f'CL+{std}'] = "cl -Fe:{{1}} -Fo{}\\ /std:{} -O2 -GL -GF -GW -Brepro -TC {{0}}".format(BUILD_FOLDER.joinpath('objs'), std)


@register
Expand Down

0 comments on commit d80e2f0

Please sign in to comment.