Commit 50783938 authored by Tom Finegan's avatar Tom Finegan
Browse files

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