Skip to content

Commit 49751f9

Browse files
committed
feat: Provide libarm_compute.a in Linux(R) Cpu only multi-isa build via scons
Duplicate libarm_compute-static.a with name libarm_compute.a. libarm_compute-static.a will be removed in future releases, and libarm_compute.a will be used instead in all applicable releases. This new binary will be accessible in build time only. It will be available in pre-built release binaries after it's been deprecated and rolled out to other builds with a major version upgrade. Partially Resolves: COMPMID-8695 Change-Id: I59c3e809fc282d6dd16071184203e5be1d4af4d6 Signed-off-by: Gunes Bayir <[email protected]>
1 parent b175867 commit 49751f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SConscript

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,13 @@ if (env['multi_isa']):
744744
lib_static_objs, lib_shared_objs = build_multiisa_lib_objects()
745745
# STATIC library build.
746746
arm_compute_a = build_library('arm_compute-static', arm_compute_env, lib_static_objs, static=True)
747+
748+
if(env['os'] == 'linux' and not env['opencl']):
749+
# -static suffix in static libraries is deprecated, and will be removed in COMPMID-8696.
750+
# This additional static binary is provided temporarily for multi-isa builds upon user request,
751+
# and after the deprecation notice, the version with -static suffix will be removed in a
752+
# future major release.
753+
arm_compute_a_wo_suffix = build_library('arm_compute', arm_compute_env, lib_static_objs, static=True)
747754
else:
748755
if 'sve2' in env['arch']:
749756
lib_files += lib_files_sve
@@ -755,6 +762,10 @@ else:
755762

756763
Export('arm_compute_a')
757764

765+
if (env['multi_isa'] and env['os'] == 'linux' and not env['opencl']):
766+
# Remove this part as part of COMPMID-8696
767+
Export('arm_compute_a_wo_suffix')
768+
758769
# SHARED library build.
759770
if env['os'] != 'bare_metal' and not env['standalone']:
760771
if (env['multi_isa']):

0 commit comments

Comments
 (0)