aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 3 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index 264ed9cbe0..0385e2e392 100644
--- a/SConstruct
+++ b/SConstruct
@@ -127,13 +127,11 @@ elif env['arch'] == 'arm64-v8a':
elif env['os'] == 'android':
prefix = "aarch64-linux-android-"
elif env['arch'] == 'arm64-v8.2-a':
+ env.Append(CPPDEFINES = ['ARM_COMPUTE_AARCH64_V8_2'])
+
if os.environ.get('CXX', 'g++') == 'clang++':
- print("Clang cannot compile armv8.2-a code")
- Exit(1)
+ env.Append(CXXFLAGS = ['-fno-integrated-as'])
- env.Append(CXXFLAGS = ['-march=armv8.2-a+fp16+simd'])
- env.Append(CPPDEFINES = ['ARM_COMPUTE_AARCH64_V8_2'])
-
if env['os'] == 'linux':
prefix = "aarch64-linux-gnu-"
elif env['os'] == 'bare_metal':