Fix mapfile generation in Clang
* Resolves COMPMID-5654
Change-Id: I2654f5178b4400abf333a9b7ef5c9a239ce4ef73
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8507
Reviewed-by: Ramy Elgammal <ramy.elgammal@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/SConscript b/SConscript
index 178dc62..6d17ff0 100644
--- a/SConscript
+++ b/SConscript
@@ -125,8 +125,10 @@
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)