diff options
-rw-r--r-- | SConscript | 4 | ||||
-rw-r--r-- | SConstruct | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/SConscript b/SConscript index 39a7709e83..178dc62ebb 100644 --- a/SConscript +++ b/SConscript @@ -124,6 +124,10 @@ def build_library(name, build_env, sources, static=False, libs=[]): else: 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') + obj = install_lib(obj) build_env.Default(obj) return obj diff --git a/SConstruct b/SConstruct index f2d7848a12..220e118020 100644 --- a/SConstruct +++ b/SConstruct @@ -127,6 +127,7 @@ vars.AddVariables( └── Neon\n""", "", PathVariable.PathAccept), BoolVariable("experimental_dynamic_fusion", "Build the experimental dynamic fusion files", False), BoolVariable("experimental_fixed_format_kernels", "Enable fixed format kernels for GEMM", False), + BoolVariable("mapfile", "Generate a map file", False), ListVariable("custom_options", "Custom options that can be used to turn on/off features", "none", ["disable_mmla_fp"]), ListVariable("data_type_support", "Enable a list of data types to support", "all", ["qasymm8", "qasymm8_signed", "qsymm16", "fp16", "fp32", "integer"]), ListVariable("data_layout_support", "Enable a list of data layout to support", "all", ["nhwc", "nchw"]), |