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:
dan sinclair 2020-03-11 18:43:12 +00:00 committed by David Neto
parent ab0cdaf652
commit 37dbf99e34
1 changed files with 3 additions and 3 deletions

View File

@ -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