Skip to content

Commit 0d22226

Browse files
committed
[SPEC] Workaround error with latest clang in 510.parest_r
Similarly to llvm#118, 510.parest_r contains another latent error related to template deduction that after llvm/llvm-project#100692 fails to build. We can workaround this by passing -fno-relaxed-template-template-args
1 parent d6a91b8 commit 0d22226

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ endif ()
66

77
speccpu2017_benchmark(RATE)
88

9+
include(CheckCXXCompilerFlag)
10+
check_cxx_compiler_flag(-fno-relaxed-template-template-args
11+
HAVE_CXX_FLAG_FNO_RELAXED_TEMPLATE_TEMPLATE_ARGS)
12+
if(HAVE_CXX_FLAG_FNO_RELAXED_TEMPLATE_TEMPLATE_ARGS)
13+
add_compile_options(-fno-relaxed-template-template-args)
14+
endif()
15+
916
speccpu2017_add_include_dirs(include .)
1017

1118
## test ########################################################################

0 commit comments

Comments
 (0)