Skip to content

Commit

Permalink
Address the comments in the review
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Jun 8, 2024
1 parent 84c6969 commit 5f55261
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/launchers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Test CLI Launchers on all the platforms
on:
pull_request:
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/MainGenericRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ object MainGenericRunner {

val ranByCoursierBootstrap =
sys.props.isDefinedAt("coursier.mainJar")
|| sys.props.get("bootstrap.mainClass").filter(_ == "dotty.tools.MainGenericRunner").isDefined
|| sys.props.get("bootstrap.mainClass").contains("dotty.tools.MainGenericRunner")

val silenced = sys.props.get("scala.use_legacy_launcher") == Some("true")

Expand Down
3 changes: 1 addition & 2 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2323,8 +2323,7 @@ object Build {
settings(scala3PresentationCompilerBuildInfo)

def asDist(implicit mode: Mode): Project = project.
enablePlugins(PackPlugin).
enablePlugins(RepublishPlugin).
enablePlugins(PackPlugin, RepublishPlugin).
withCommonSettings.
settings(commonDistSettings).
dependsOn(
Expand Down
2 changes: 1 addition & 1 deletion project/Modes.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sbt.{Project, ProjectReference, SettingsDefinition, Plugins}
import sbt.{Project, ProjectReference, SettingsDefinition}

object Modes {

Expand Down
5 changes: 4 additions & 1 deletion project/scripts/buildScalaBinary
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

set -e

source $(dirname $0)/cmdTestsCommon.inc.sh
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/../.."

# set the $DIST_PROJECT and $DIST_DIR variables
source "$ROOT/bin/common-platform"

# build the scala/scalac/scaladoc binary, where scala is native for the current platform.
"$SBT" "$DIST_PROJECT/pack"

0 comments on commit 5f55261

Please sign in to comment.