diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2024-03-25 16:31:26 +0000 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2024-03-26 09:03:55 +0000 |
commit | 37d84451eb1f8b4811faa4359ce154c832602782 (patch) | |
tree | 224a50e81a89689151141c8e99a141b2ecc25ec8 /examples | |
parent | 473b8291a7dc126586d19b82d6c84b4c7a6e44a6 (diff) | |
download | ComputeLibrary-37d84451eb1f8b4811faa4359ce154c832602782.tar.gz |
Fix graph examples for WoA
* Fix compiler and runtime errors
* Resolves MLCE-1236
Change-Id: I22cfd8e7ef267c039efe86fa71838a6011d4d85b
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11345
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/SConscript | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/examples/SConscript b/examples/SConscript index 16f31d93d4..8ece7e60b2 100644 --- a/examples/SConscript +++ b/examples/SConscript @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -# Copyright (c) 2017-2023 Arm Limited. +# Copyright (c) 2017-2024 Arm Limited. # # SPDX-License-Identifier: MIT # @@ -51,11 +51,18 @@ else: graph_dependency = [arm_compute_graph_so] extra_link_flags = [] -if env['os'] != 'bare_metal': + +if not env['os'] in ['windows','bare_metal'] : extra_link_flags += ['-fstack-protector-strong'] -load_whole_archive = '-Wl,--whole-archive' -noload_whole_archive = '-Wl,--no-whole-archive' + +if env['os'] != 'windows' : + load_whole_archive = '-Wl,--whole-archive' + noload_whole_archive = '-Wl,--no-whole-archive' +else: + load_whole_archive = '/wholearchive' + noload_whole_archive = '' + if 'macos' in examples_env['os']: load_whole_archive = '-Wl,-force_load' noload_whole_archive = '' @@ -67,7 +74,7 @@ examples_libs = examples_env.get("LIBS",[]) for file in Glob("./graph_*.cpp"): example = os.path.basename(os.path.splitext(str(file))[0]) prog = None - if env['os'] in ['android', 'macos', 'bare_metal'] or env['standalone']: + if env['os'] in ['android','windows', 'macos', 'bare_metal'] or env['standalone']: prog = examples_env.Program(example, ["{}.cpp".format(example), utils, graph_utils], LIBS = examples_libs + arm_compute_graph_libs, LINKFLAGS=examples_env["LINKFLAGS"]+[load_whole_archive, graph_dependency, noload_whole_archive] + extra_link_flags) Depends(prog, graph_dependency) prog = install_bin(prog) |