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 --- SConscript | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'SConscript') 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: -- cgit v1.2.1