Use .sbtopts file

This commit is contained in:
abejgonzalez
2021-05-06 00:55:57 -07:00
parent ff02977c5c
commit 309ab68e79
2 changed files with 6 additions and 1 deletions

2
.sbtopts Normal file
View File

@@ -0,0 +1,2 @@
-Dsbt.sourcemode=true
-Dsbt.workspace=$PWD/tools

View File

@@ -152,7 +152,10 @@ JAVA_OPTS ?= -Xmx$(JAVA_HEAP_SIZE) -Xss8M -XX:MaxPermSize=256M -Djava.io.tmpdir=
# default sbt launch command
#########################################################################################
# by default build chisel3/firrtl and other subprojects from source
override SBT_OPTS += -Dsbt.sourcemode=true -Dsbt.workspace=$(base_dir)/tools
SBT_OPTS_FILE := $(base_dir)/.sbtopts
ifneq (,$(wildcard $(SBT_OPTS_FILE)))
override SBT_OPTS += $(subst $$PWD,$(base_dir),$(shell cat $(SBT_OPTS_FILE)))
endif
SCALA_BUILDTOOL_DEPS = $(SBT_SOURCES)