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:
@@ -18,7 +18,7 @@ HELP_COMPILATION_VARIABLES += \
|
|||||||
" EXTRA_SIM_LDFLAGS = additional LDFLAGS for building simulators" \
|
" EXTRA_SIM_LDFLAGS = additional LDFLAGS for building simulators" \
|
||||||
" EXTRA_SIM_SOURCES = additional simulation sources needed for simulator" \
|
" EXTRA_SIM_SOURCES = additional simulation sources needed for simulator" \
|
||||||
" EXTRA_SIM_REQS = additional make requirements to build the simulator" \
|
" EXTRA_SIM_REQS = additional make requirements to build the simulator" \
|
||||||
" ENABLE_SBT_THIN_CLIENT = if set, use sbt's experimental thin client (works best with sbtn or sbt script)" \
|
" ENABLE_SBT_THIN_CLIENT = if set, use sbt's experimental thin client (works best when overridding SBT_BIN with sbt script)" \
|
||||||
" EXTRA_CHISEL_OPTIONS = additional options to pass to the Chisel compiler" \
|
" EXTRA_CHISEL_OPTIONS = additional options to pass to the Chisel compiler" \
|
||||||
" EXTRA_FIRRTL_OPTIONS = additional options to pass to the FIRRTL compiler"
|
" EXTRA_FIRRTL_OPTIONS = additional options to pass to the FIRRTL compiler"
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,8 @@ override SCALA_BUILDTOOL_DEPS += $(SBT_THIN_CLIENT_TIMESTAMP)
|
|||||||
SBT_CLIENT_FLAG = --client
|
SBT_CLIENT_FLAG = --client
|
||||||
endif
|
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))
|
SBT_NON_THIN ?= $(subst $(SBT_CLIENT_FLAG),,$(SBT))
|
||||||
|
|
||||||
define run_scala_main
|
define run_scala_main
|
||||||
|
|||||||
Reference in New Issue
Block a user