From fbbfa5388d7e430ff7e9a3fb0bff8045574706e4 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 26 Jan 2023 16:24:04 +0000 Subject: Fixed build error for Windows. * Do not link dl when os=windows * Partially resolves MLCE-996 Change-Id: Ibc036cc69aa9b146f263eb69d64fcb89ace2c97c Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9040 Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- SConstruct | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 8603017f71..ca53246834 100644 --- a/SConstruct +++ b/SConstruct @@ -499,6 +499,8 @@ if env['os'] == 'windows': env.Append(CXXFLAGS = [ '-Wno-float-conversion', '-Wno-switch-enum','-Wno-comma']) env.Append(CXXFLAGS = [ '-Wno-implicit-float-conversion', '-Wno-deprecated-declarations','-Wno-old-style-cast']) env.Append(CXXFLAGS = [ '-Wno-zero-as-null-pointer-constant', '-Wno-inconsistent-missing-destructor-override']) + env.Append(CXXFLAGS = [ '-Wno-asm-operand-widths']) + if env['specs_file'] != "": env.Append(LINKFLAGS = ['-specs='+env['specs_file']]) -- cgit v1.2.1