diff options
author | Pablo Tello <pablo.tello@arm.com> | 2023-01-26 16:24:04 +0000 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2023-01-30 09:22:52 +0000 |
commit | fbbfa5388d7e430ff7e9a3fb0bff8045574706e4 (patch) | |
tree | c6807c6f2a30dc6bdeb05d1b277f18247e6c3571 | |
parent | 67c3c631240a67105d9e30c6fd9dc413d075f095 (diff) | |
download | ComputeLibrary-fbbfa5388d7e430ff7e9a3fb0bff8045574706e4.tar.gz |
Fixed build error for Windows.
* Do not link dl when os=windows
* Partially resolves MLCE-996
Change-Id: Ibc036cc69aa9b146f263eb69d64fcb89ace2c97c
Signed-off-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9040
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r-- | SConscript | 8 | ||||
-rw-r--r-- | SConstruct | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/SConscript b/SConscript index 45816cad4a..b79fa6262c 100644 --- a/SConscript +++ b/SConscript @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright (c) 2016-2022 Arm Limited. +# Copyright (c) 2016-2023 Arm Limited. # # SPDX-License-Identifier: MIT # @@ -490,7 +490,11 @@ arm_compute_env.Append(LINKFLAGS=[undefined_flag]) arm_compute_env.Append(CPPPATH =[Dir("./src/core/").path] ) if env['os'] != 'openbsd': - arm_compute_env.Append(LIBS = ['dl']) + if env['os'] == 'windows': + arm_compute_env.Append(LIBS = []) + else: + arm_compute_env.Append(LIBS = ['dl']) + # Load build definitions file with (open(Dir('#').path + '/filedefs.json')) as fd: 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']]) |