From a4f887021503507194774aeab3f76dca10888b97 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Fri, 21 Oct 2022 10:24:23 +0100 Subject: Fix mapfile generation in Clang * Resolves COMPMID-5654 Change-Id: I2654f5178b4400abf333a9b7ef5c9a239ce4ef73 Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8507 Reviewed-by: Ramy Elgammal Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- SConscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'SConscript') diff --git a/SConscript b/SConscript index 178dc62ebb..6d17ff0042 100644 --- a/SConscript +++ b/SConscript @@ -125,8 +125,10 @@ def build_library(name, build_env, sources, static=False, libs=[]): obj = cloned_build_env.SharedLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs) if env['mapfile']: - if not 'windows' in env['os']: - cloned_build_env['LINKFLAGS'].append('-Wl,-Map='+ name + '.map') + if not 'windows' in env['os'] and not 'macos' in env['os']: + cloned_build_env['LINKFLAGS'].append('"-Wl,-Map='+ name + '.map"') + else: + cloned_build_env['LINKFLAGS'].append('-Wl,-map,' + name + '.map') obj = install_lib(obj) build_env.Default(obj) -- cgit v1.2.1