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>
diff --git a/SConscript b/SConscript
index 45816ca..b79fa62 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(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: