Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6785a9

Browse files
committed
chore: add thescala-library project
1 parentfb66af2 commitc6785a9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

‎build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ val `scala3-bootstrapped` = Build.`scala3-bootstrapped`
33
val`scala3-interfaces`=Build.`scala3-interfaces`
44
val`scala3-compiler`=Build.`scala3-compiler`
55
val`scala3-compiler-bootstrapped`=Build.`scala3-compiler-bootstrapped`
6+
val`scala-library-nonbootstrapped`=Build.`scala-library-nonbootstrapped`
67
val`scala3-library`=Build.`scala3-library`
78
val`scala3-library-bootstrapped`=Build.`scala3-library-bootstrapped`
89
val`scala3-library-bootstrappedJS`=Build.`scala3-library-bootstrappedJS`

‎project/Build.scala

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,33 @@ object Build {
14111411
)
14121412
)
14131413

1414+
// ==============================================================================================
1415+
// =================================== SCALA STANDARD LIBRARY ===================================
1416+
// ==============================================================================================
1417+
1418+
/* Configuration of the org.scala-lang:scala-library:*.**.**-nonboostrapped project*/
1419+
lazyval`scala-library-nonbootstrapped`= project.in(file("library"))
1420+
.settings(
1421+
name:="scala-library-nonbootstrapped",
1422+
moduleName:="scala-library",
1423+
version:= dottyNonBootstrappedVersion,
1424+
versionScheme:=Some("semver-spec"),
1425+
scalaVersion:= referenceVersion,// nonbootstrapped artifacts are compiled with the reference compiler (already officially published)
1426+
crossPaths:=false,// org.scala-lang:scala-library doesn't have a crosspath
1427+
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1428+
Compile/ scalacOptions:=Seq("-deprecation","-feature","-unchecked","-encoding","UTF8","-language:implicitConversions"),
1429+
// Add the source directories for the stdlib (non-boostrapped)
1430+
Compile/ unmanagedSourceDirectories:=Seq(baseDirectory.value/"src"),
1431+
Compile/ unmanagedSourceDirectories+= baseDirectory.value/"src-non-bootstrapped",
1432+
// Only publish compilation artifacts, no test artifacts
1433+
Compile/ publishArtifact:=true,
1434+
Test/ publishArtifact:=false,
1435+
// Do not allow to publish this project for now
1436+
publish/ skip:=true,
1437+
// Project specific target folder. sbt doesn't like having two projects using the same target folder
1438+
target:= target.value/"scala-library-nonbootstrapped",
1439+
)
1440+
14141441
defdottyLibrary(implicitmode:Mode):Project= modematch {
14151442
caseNonBootstrapped=> `scala3-library`
14161443
caseBootstrapped=> `scala3-library-bootstrapped`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp