aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.com>2024-04-24 07:01:12 +0300
committerspreis <spreis@yandex-team.com>2024-04-24 07:14:16 +0300
commitf61ee5c5cae99c042ad96c01ab6719589dce0304 (patch)
tree3111d1e5a8b68cc1ef208af0d736667aa3622451
parent3baa9aa967a153ef389ee853f79fab5dfb4a184a (diff)
downloadydb-f61ee5c5cae99c042ad96c01ab6719589dce0304.tar.gz
Disable sbom info collection, not only emission
7dc36d07340a924c6e2393ab0028fc0d57a9e6d4
-rw-r--r--build/conf/license.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/conf/license.conf b/build/conf/license.conf
index 213cfb8fb6..41d0099420 100644
--- a/build/conf/license.conf
+++ b/build/conf/license.conf
@@ -434,7 +434,13 @@ macro LICENSE(Flags...) {
# NOTICE: final value of MODVER might not be set yet if VERSION macro is called after LICENSE. Var expansion is
# escaped here to prevent eager value substitution by SET but allow delayed value substitution when
# adding linking SBOM data command to graph.
- SET_APPEND(_SBOM_INFO_GLOBAL "path=${MODDIR};ver=\${join=.:MODVER};lang=${MODULE_LANG}")
+ when ($_NEED_SBOM_INFO == "yes") {
+ _SBOM_INFO_LOCAL="path=${MODDIR};ver=${join=.:MODVER};lang=${MODULE_LANG}"
+ }
+ otherwise {
+ _SBOM_INFO_LOCAL=
+ }
+ SET_APPEND(_SBOM_INFO_GLOBAL $_SBOM_INFO_LOCAL)
}
### @usage LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)