Fix CMake build when TINT_BUILD_FUZZERS=1
The `libtint-fuzz` target needs to be defined before reference. Change-Id: I030f4b3b93a095bd353aa6cff402e351d5b77dca Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35381 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
e1bea58ca4
commit
7fbd67a132
|
@ -363,13 +363,6 @@ if (${COMPILER_IS_LIKE_GNU})
|
||||||
endif()
|
endif()
|
||||||
set_target_properties(libtint PROPERTIES OUTPUT_NAME "tint")
|
set_target_properties(libtint PROPERTIES OUTPUT_NAME "tint")
|
||||||
|
|
||||||
if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
|
|
||||||
tint_spvtools_compile_options(libtint)
|
|
||||||
if (${TINT_BUILD_FUZZERS})
|
|
||||||
tint_spvtools_compile_options(libtint-fuzz)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (${TINT_BUILD_FUZZERS})
|
if (${TINT_BUILD_FUZZERS})
|
||||||
# Tint library with fuzzer instrumentation
|
# Tint library with fuzzer instrumentation
|
||||||
add_library(libtint-fuzz ${TINT_LIB_SRCS})
|
add_library(libtint-fuzz ${TINT_LIB_SRCS})
|
||||||
|
@ -381,6 +374,13 @@ if (${TINT_BUILD_FUZZERS})
|
||||||
target_link_options(libtint-fuzz PUBLIC -fsanitize=fuzzer -fsanitize-coverage=trace-cmp)
|
target_link_options(libtint-fuzz PUBLIC -fsanitize=fuzzer -fsanitize-coverage=trace-cmp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
|
||||||
|
tint_spvtools_compile_options(libtint)
|
||||||
|
if (${TINT_BUILD_FUZZERS})
|
||||||
|
tint_spvtools_compile_options(libtint-fuzz)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(${TINT_BUILD_TESTS})
|
if(${TINT_BUILD_TESTS})
|
||||||
set(TINT_TEST_SRCS
|
set(TINT_TEST_SRCS
|
||||||
ast/array_accessor_expression_test.cc
|
ast/array_accessor_expression_test.cc
|
||||||
|
|
Loading…
Reference in New Issue