Commit 50783938 authored by Tom Finegan's avatar Tom Finegan

Fix CMake sanitizer build support.

Linker flags for -fsanitize must be set before the test
of C/CXX flags because the link step that occurs as part
of the C/CXX build test fails otherwise.

Change-Id: Iedfead47598dc086b2477ae99b6f7bc9fae222d2
parent 37234c12
......@@ -20,8 +20,8 @@ include("${AOM_ROOT}/build/cmake/compiler_flags.cmake")
string(TOLOWER ${SANITIZE} SANITIZE)
# Require the sanitizer requested.
require_compiler_flag("-fsanitize=${SANITIZE}" YES)
require_linker_flag("-fsanitize=${SANITIZE}")
require_compiler_flag("-fsanitize=${SANITIZE}" YES)
# Make callstacks accurate.
require_compiler_flag("-fno-omit-frame-pointer -fno-optimize-sibling-calls" YES)
......
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