Skip to content

Commit

Permalink
Temp disable CL
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 23, 2024
1 parent 2777514 commit 5ae2eac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
7 changes: 4 additions & 3 deletions c/test_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@
compilers.extend(f'CLANG+{std}' for std in STANDARDS)
if AOCC_BINARY != 'clang' and which(AOCC_BINARY):
compilers.extend(f'AOCC+{std}' for std in STANDARDS)
for x in ('cl', 'icc'):
if which(x):
compilers.extend(f'{x.upper()}+{std}' for std in STANDARDS)
if which('icc'):
compilers.extend(f'ICC+{std}' for std in STANDARDS)
# if which('cl'):
# compilers.extend(f'CL+{std}' for std in STANDARDS)
for x in ('pcc', 'tcc'):
if which(x):
compilers.append(x.upper())
Expand Down
18 changes: 13 additions & 5 deletions cplusplus/test_euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@
compilers.extend(f'AOCC+{std}' for std in STANDARDS)
else:
compilers.extend(f'CLANG+{std}' for std in STANDARDS)
if IN_WINDOWS:
compilers.remove('CLANG+C++98')
compilers.remove('CLANG+C++03')
if AOCC_BINARY != 'clang' and which(AOCC_BINARY):
compilers.extend(f'AOCC+{std}' for std in STANDARDS)
for x in ('cl', 'icc'):
if which(x):
compilers.extend(f'{x.upper()}+{std}' for std in STANDARDS)
if which('icc'):
compilers.extend(f'ICC+{std}' for std in STANDARDS)
# if which('cl'):
# compilers.extend(f'CL+{std}' for std in STANDARDS)
# compilers.remove('CL+C++98')
# compilers.remove('CL+C++03')
# compilers.remove('CL+C++11')
# compilers.remove('CL+C++14')
if not compilers:
raise RuntimeError("No compilers detected!")

Expand All @@ -117,7 +125,7 @@
CL_NO_64 = False
if 'CL' in compilers:
OBJ_FOLDER = BUILD_FOLDER.joinpath('objs')
OBJ_FOLDER.mkdir(exist_ok=True)
OBJ_FOLDER.mkdir(parents=True, exist_ok=True)
_test_file = str(CPP_FOLDER.joinpath('assertions', 'x64_assert.cpp'))
_test_exe = str(BUILD_FOLDER.joinpath('test_cl_64_support.out'))
CL_NO_64 = not (run(['cl', '-Fe:{}'.format(_test_exe), '-Fo{}\\'.format(OBJ_FOLDER), str(_test_file)]).returncode)
Expand Down Expand Up @@ -153,7 +161,7 @@
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)
f'CL+{std}': "cl /EHa -Fe:{{1}} -Fo{}\\ /std:{} -O2 -GL -GF -GW -Brepro -TC {{0}}".format(BUILD_FOLDER.joinpath('objs'), std)
})


Expand Down

0 comments on commit 5ae2eac

Please sign in to comment.