Skip to content

Commit 2e8c8d9

Browse files
authored
[SPEC2017] Use llvm_test_library for the wrf_netcdf target of 521.wrf_r so that to add dependencies required for compiletime measurements (#238)
* [SPEC2017] Add dependencies required for compiletime measurements to the wrf_netcdf target of 521.wrf_r Without this change, Fortran benchmarks of SPEC2017 fail to build. Steps to reproduce: $ cmake -B builddir \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_Fortran_COMPILER=flang \ -G Ninja \ -C cmake/caches/O3.cmake \ -DTEST_SUITE_SPEC2017_ROOT=path/to/cpu2017-v1.1.5 \ -DTEST_SUITE_RUN_TYPE=ref \ -DTEST_SUITE_FORTRAN=ON \ -DCMAKE_C_FLAGS=-Wno-implicit-int \ -DCMAKE_CXX_FLAGS=-Wno-implicit-int $ cmake --build builddir/ [0/2] Re-checking globbed directories... [1932/35275] Building C object External/SPEC/CFP2017rate/521.wrf_r/CMakeFiles/wrf_netcdf.dir/__/__/cpu2017-v1.1.5/benchspec/CPU/521.wrf_r/src/netcdf/attr.c.o FAILED: ... /bin/sh: 1: builddir/tools/timeit: not found
1 parent 7cba712 commit 2e8c8d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

External/SPEC/CFP2017rate/521.wrf_r/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (NOT TARGET wrf_netcdf)
7171
${SRC_DIR}/netcdf/fort-var1io.c ${SRC_DIR}/netcdf/fort-vario.c
7272
${SRC_DIR}/netcdf/fort-varmio.c ${SRC_DIR}/netcdf/varsio.c
7373
${SRC_DIR}/netcdf/posixio.c)
74-
add_library(wrf_netcdf OBJECT ${netcdf_sources})
74+
llvm_test_library(wrf_netcdf OBJECT ${netcdf_sources})
7575
target_compile_definitions(wrf_netcdf PRIVATE SPEC_CASE_FLAG)
7676
endif ()
7777

0 commit comments

Comments
 (0)