Permalink
Browse files

Allow to generate native bootstraps

  • Loading branch information...
alexarchambault committed Jul 8, 2017
1 parent ed1e41b commit 7d69815f642a99bf31c7f0894fe4acb10b853739
View
@@ -20,6 +20,8 @@ matrix:
os: linux
jdk: oraclejdk8
sudo: required
before_install:
- curl https://raw.githubusercontent.com/scala-native/scala-native/v0.3.1/bin/travis_setup.sh | bash -x
services:
- docker
- env: SCALA_VERSION=2.10.6 PUBLISH=1
View
@@ -14,6 +14,16 @@ install:
- cmd: SET PATH=C:\sbt\sbt\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET SBT_OPTS=-XX:MaxPermSize=2g -Xmx4g
- git submodule update --init --recursive
- ps: |
if (!(Test-Path 'C:\Users\appveyor\.ivy2\local\sandbox\sandbox_native0.3_2.11\0.1-SNAPSHOT')) {
iex 'git clone https://github.com/coursier/scala-native'
Set-Location -Path scala-native
iex 'git checkout 550bf6e37d27'
iex 'sbt ++2.11.8 sandbox/publishLocal'
iex 'git checkout f8088aef6981'
iex 'sbt ++2.11.8 nscplugin/publishLocal util/publishLocal nir/publishLocal tools/publishLocal'
Set-Location -Path ..
}
- ps: |
if (!(Test-Path 'C:\Users\appveyor\.m2\repository\org\anarres\jarjar\jarjar-core\1.0.1-coursier-SNAPSHOT')) {
iex 'git clone https://github.com/alexarchambault/jarjar'
View
@@ -110,10 +110,34 @@ lazy val bootstrap = project
)
lazy val extra = project
.enablePlugins(ShadingPlugin)
.dependsOn(coreJvm)
.settings(
shared,
coursierPrefix
coursierPrefix,
shading,
libs ++= {
val ver = "0.3.0-coursier-1"
if (scalaBinaryVersion.value == "2.11")
Seq(
"org.scala-native" %% "tools" % ver % "shaded",
// brought by tools, but issues in ShadingPlugin (with things published locally?) makes these not be shaded...
"org.scala-native" %% "nir" % ver % "shaded",
"org.scala-native" %% "util" % ver % "shaded",
Deps.fastParse % "shaded"
)
else
Nil
},
shadeNamespaces ++=
Set(
"fastparse",
"sourcecode"
) ++
// not blindly shading the whole scala.scalanative here, for some constant strings starting with
// "scala.scalanative.native." in scalanative not to get prefixed with "coursier.shaded."
Seq("codegen", "io", "linker", "nir", "optimizer", "tools", "util")
.map("scala.scalanative." + _)
)
lazy val cli = project
Oops, something went wrong.

0 comments on commit 7d69815

Please sign in to comment.