Commit 8d1f8716 by Ben Clayton

CMakeLists: Fix building of llvm-with-cov

`target_compile_options` should have been `target_compile_definitions` Also remove the global `set_cpp_flag` for these defines which are now unnecessary. Bug: b/145758253 Change-Id: Ie03b0ad196bd1ee155e3f4953d920d6b502db51c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44848Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent 1d9d6451
......@@ -429,9 +429,6 @@ else()
"-fno-operator-names"
)
# LLVM headers requires these flags to be set
set_cpp_flag("-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS")
if(ARCH STREQUAL "x86")
set_cpp_flag("-m32")
set_cpp_flag("-msse2")
......
......@@ -1250,7 +1250,7 @@ if(SWIFTSHADER_EMIT_COVERAGE)
${LLVM_INCLUDE_DIR}
)
target_compile_options(llvm-with-cov
target_compile_definitions(llvm-with-cov
PUBLIC
"__STDC_CONSTANT_MACROS"
"__STDC_LIMIT_MACROS"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment