diff options
author | vpozdyayev <vpozdyayev@yandex-team.com> | 2023-10-20 10:01:25 +0300 |
---|---|---|
committer | vpozdyayev <vpozdyayev@yandex-team.com> | 2023-10-20 10:28:18 +0300 |
commit | bcbb765da1b14178a1bc4597e7f2980d1edde337 (patch) | |
tree | 0a70d74d8f4c5ebd795f7fd37155706a28c3ba5c | |
parent | 582169b91254ed1d7e88129ae4f12e937685fb41 (diff) | |
download | ydb-bcbb765da1b14178a1bc4597e7f2980d1edde337.tar.gz |
Add DEFAULT_JDK_VERSION(), a.k.a. overridable JDK_VERSION()
Делаем через `_SET_FIRST_VALUE()`, разборки с `.EPILOGUE` оставим на случай обнаружения реальных проблем. Повторные вызовы `DEFAULT_JDK_VERSION()` отрабатывают достаточно ожидаемым образом, обновляя значение `JDK_REAL_VERSION`.
-rw-r--r-- | build/conf/java.conf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build/conf/java.conf b/build/conf/java.conf index 21af7e57d9..b43687b5db 100644 --- a/build/conf/java.conf +++ b/build/conf/java.conf @@ -1872,6 +1872,15 @@ macro JDK_VERSION(Arg) { } # tag:java-specific +### @usage: DEFAULT_JDK_VERSION(Version) +### +### Specify JDK version for module, can be overridden by setting the JDK_VERSION variable +macro DEFAULT_JDK_VERSION(Arg) { + _SET_FIRST_VALUE(_JDK_VERSION $JDK_VERSION $Arg) + JDK_VERSION($_JDK_VERSION) +} + +# tag:java-specific # local jdk and tools USE_SYSTEM_JDK= USE_SYSTEM_UBERJAR= |