aboutsummaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConscript b/SConscript
index e8f8b87f40..0f9d167742 100644
--- a/SConscript
+++ b/SConscript
@@ -532,8 +532,9 @@ arm_compute_env.Append(CPPDEFINES = [('ARM_COMPUTE_VERSION_MAJOR', LIBRARY_VERSI
# Don't allow undefined references in the libraries:
undefined_flag = '-Wl,-undefined,error' if 'macos' in arm_compute_env["os"] else '-Wl,--no-undefined'
-if not env['thread_sanitizer']:
+if not env['thread_sanitizer'] or not env['address_sanitizer'] or not env['undefined_sanitizer']:
arm_compute_env.Append(LINKFLAGS=[undefined_flag])
+
arm_compute_env.Append(CPPPATH =[Dir("./src/core/").path] )
if env['os'] != 'openbsd':