Separate the base SBT command from the --client addition

This makes it easier to override just SBT_BIN and still use the
ENABLE_SBT_THIN_CLIENT flag when using a downloaded SBT script
This commit is contained in:
abejgonzalez
2021-11-12 12:09:02 -08:00
parent 6a6fbe1a8d
commit 99f1a3aed3
2 changed files with 3 additions and 2 deletions

View File

@@ -175,7 +175,8 @@ override SCALA_BUILDTOOL_DEPS += $(SBT_THIN_CLIENT_TIMESTAMP)
SBT_CLIENT_FLAG = --client
endif
SBT ?= java $(JAVA_TOOL_OPTIONS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar $(SBT_OPTS) $(SBT_CLIENT_FLAG)
SBT_BIN ?= java $(JAVA_TOOL_OPTIONS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar $(SBT_OPTS)
SBT ?= $(SBT_BIN) $(SBT_CLIENT_FLAG)
SBT_NON_THIN ?= $(subst $(SBT_CLIENT_FLAG),,$(SBT))
define run_scala_main