Always define TINT_BUILD_SPV_PARSER.
This CL always sets the define for building the SPV_PARSER. This fixes undefined errors on certian platforms. Change-Id: I5f84295cb7ddf23d64efd9a4d00717c84bc698aa Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16800 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
parent
ab0cdaf652
commit
37dbf99e34
|
@ -69,9 +69,9 @@ endif()
|
|||
function(tint_default_compile_options TARGET)
|
||||
include_directories("${PROJECT_SOURCE_DIR}")
|
||||
|
||||
if (${TINT_BUILD_SPV_PARSER})
|
||||
target_compile_definitions(${TARGET} PRIVATE -DTINT_BUILD_SPV_PARSER=1)
|
||||
endif()
|
||||
target_compile_definitions(${TARGET} PRIVATE
|
||||
-DTINT_BUILD_SPV_PARSER=$<BOOL:${TINT_BUILD_SPV_PARSER}>)
|
||||
|
||||
if (${COMPILER_IS_LIKE_GNU})
|
||||
target_compile_options(${TARGET} PRIVATE
|
||||
-std=c++14
|
||||
|
|
Loading…
Reference in New Issue