Build the harness as a static library (#430)

This reduces by a factor of roughly two the number of files to build.

Fixes #193.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kévin Petit
2019-08-07 17:18:10 +01:00
committed by GitHub
parent 67655e6fe5
commit fa4b278432
78 changed files with 68 additions and 625 deletions

View File

@@ -9,16 +9,8 @@ set (SPIR_SOURCES
run_build_test.cpp
run_services.cpp
kernelargs.cpp
../../test_common/harness/parseParameters.cpp
../math_brute_force/FunctionList.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/os_helpers.cpp
../../test_common/harness/testHarness.c
../../test_common/miniz/miniz.c
../../test_common/harness/crc32.c)
)
add_executable(${SPIR_OUT}
${SPIR_SOURCES})
@@ -36,7 +28,7 @@ elseif(MSVC)
COMPILE_FLAGS "/GR /EHs /EHc")
endif()
TARGET_LINK_LIBRARIES(${SPIR_OUT}
TARGET_LINK_LIBRARIES(${SPIR_OUT} harness
${CLConform_LIBRARIES})