From 7a698a38c625047bd558027d4cbc493f063739f5 Mon Sep 17 00:00:00 2001 From: Jakub Sujak Date: Wed, 21 Jun 2023 09:45:41 +0100 Subject: Improvements to building CKW * Always link Compute Kernel Writer statically to Compute Library * Move CMake logic to be set on libckw target * Build CKW in parallel from SCons Resolves: COMPMID-6297 Change-Id: I247a1f6ddf84a58032358a196574866b857d9bdc Signed-off-by: Jakub Sujak Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9834 Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- SConscript | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'SConscript') diff --git a/SConscript b/SConscript index c9a56ede76..c7139552e3 100644 --- a/SConscript +++ b/SConscript @@ -31,8 +31,12 @@ import zlib import json import codecs -print("DEPRECATION NOTICE: Legacy libarm_compute_core has been deprecated. Link your application only to " - "libarm_compute for core library functionality") +from SCons.Warnings import warn, DeprecatedWarning + +warn(DeprecatedWarning, + "DEPRECATION NOTICE: Legacy libarm_compute_core has been deprecated and is scheduled for removal in 24.02 release." + " Link your application only to libarm_compute for core library functionality" + ) VERSION = "v0.0-unreleased" LIBRARY_VERSION_MAJOR = 31 @@ -123,6 +127,9 @@ def build_library(name, build_env, sources, static=False, libs=[]): cloned_build_env["LINKFLAGS"].remove('-pie') cloned_build_env["LINKFLAGS"].remove('-static-libstdc++') + if env['ckw']: + libs.append('libckw.a') + if static: obj = cloned_build_env.StaticLibrary(name, source=sources, LIBS = arm_compute_env["LIBS"] + libs) else: -- cgit v1.2.1