aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-02-24 12:46:35 +0000
committerGiorgio Arena <giorgio.arena@arm.com>2021-03-25 10:28:58 +0000
commite7254a09c54f09413ac3b23d4997089ebdbc4387 (patch)
tree8c10fb90ef7628646b0a0dec713b6caa6b12a29a /SConstruct
parent32e0646234e5900f0b0cfa00ddac46bbf4cabb04 (diff)
downloadComputeLibrary-e7254a09c54f09413ac3b23d4997089ebdbc4387.tar.gz
Avoid -O3 optimizations on TensorShape's copy for linux armv7a in release mode
Resolve COMPMID-4286 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Change-Id: I2f658f1b366c6bccada9b81de1f310602c41a161 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5176 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index ad9a3aca1d..48b01c9a06 100644
--- a/SConstruct
+++ b/SConstruct
@@ -336,6 +336,8 @@ elif env['os'] == 'bare_metal':
env.Append(CPPDEFINES = ['BARE_METAL'])
if env['os'] == 'linux' and env['arch'] == 'armv7a':
env.Append(CXXFLAGS = [ '-Wno-psabi' ])
+ if not env['debug']:
+ env.Append(CPPDEFINES = ['LINUX_V7_RELEASE'])
if env['specs_file'] != "":
env.Append(LINKFLAGS = ['-specs='+env['specs_file']])