mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 06:33:30 +00:00
Move visibility=hidden directive.
This CL moves the visibility=hidden directive from the top level applied flags to libtint specifically. This fixes up an issue between SPIRV-Tools and the sample app when using std::rfind which ends up with different visibility. Change-Id: Ib06949b3755db66027d3656d3d6ce2504bfda81e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/29460 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
parent
b5e5b804c3
commit
b8d90ead93
@ -136,7 +136,6 @@ function(tint_default_compile_options TARGET)
|
|||||||
-std=c++14
|
-std=c++14
|
||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
-fvisibility=hidden
|
|
||||||
-Wall
|
-Wall
|
||||||
-Werror
|
-Werror
|
||||||
-Wextra
|
-Wextra
|
||||||
|
@ -376,6 +376,10 @@ set(TINT_TEST_SRCS
|
|||||||
## Tint library
|
## Tint library
|
||||||
add_library(libtint ${TINT_LIB_SRCS})
|
add_library(libtint ${TINT_LIB_SRCS})
|
||||||
tint_default_compile_options(libtint)
|
tint_default_compile_options(libtint)
|
||||||
|
if (${COMPILER_IS_LIKE_GNU})
|
||||||
|
target_compile_options(libtint PRIVATE -fvisibility=hidden)
|
||||||
|
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})
|
if(${TINT_BUILD_SPV_READER} OR ${TINT_BUILD_SPV_WRITER})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user