Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/kokoro
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2019-04-11 23:33:26 +0300
committerDavid Neto <dneto@google.com>2019-04-11 23:33:26 +0300
commit2b46521cd77cb50c4b841a93d4025f3c67a7c4fc (patch)
tree55c8283a83e455e47f9ec03e503f39f8cec5ae92 /kokoro
parent82ebbbba15c2adb7933489130374b43be970b8d4 (diff)
Add -fsantize to link flags. (#2506)
The option "SPIRV_USE_SANITIZER=address" does not work as stated in our documentation because the link step fails for the tools. We have to add -fsanitize to the link flags so the correct libraries are added on the link step. Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/2482.
Diffstat (limited to 'kokoro')
-rw-r--r--kokoro/scripts/linux/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kokoro/scripts/linux/build.sh b/kokoro/scripts/linux/build.sh
index 4796a745d..5eef411f4 100644
--- a/kokoro/scripts/linux/build.sh
+++ b/kokoro/scripts/linux/build.sh
@@ -46,7 +46,7 @@ fi
ADDITIONAL_CMAKE_FLAGS=""
if [ $CONFIG = "ASAN" ]
then
- ADDITIONAL_CMAKE_FLAGS="-DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_C_FLAGS=-fsanitize=address"
+ ADDITIONAL_CMAKE_FLAGS="SPIRV_USE_SANITIZER=address"
[ $COMPILER = "clang" ] || { echo "$CONFIG requires clang"; exit 1; }
elif [ $CONFIG = "COVERAGE" ]
then