aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1525: start repl if first arg to dotr starts with hyphenFelix Mulder2016-10-101-0/+4
|
* Fix #1437: handle build failure in bin/dotc.Ólafur Páll Geirsson2016-08-021-1/+14
|
* Merge pull request #1397 from dotty-staging/fix/dotc-pathDmitry Petrashko2016-07-281-1/+1
|\ | | | | bin/common: make check_jar work outside of dotty root
| * bin/common: make check_jar work outside of dotty rootGuillaume Martres2016-07-171-1/+1
| |
* | Fixes #1316: Remove JLineKazuyoshi Kato2016-07-272-9/+3
|/ | | | | Dotty uses ammonite.terminal since April (53bd25f) which replaces JLine. There is no reason to keep it anymore.
* Fix #1328: move search of jar deps to after buildingFelix Mulder2016-06-221-21/+21
|
* Fix #1327: redirect stderr from find_jarFelix Mulder2016-06-221-1/+1
|
* Remove hardcoded scala versionFelix Mulder2016-06-222-6/+6
| | | | Fixup from the last PR, review: @DarkDimius
* Die if `java` bin is not found or specifiedFelix Mulder2016-06-211-0/+1
|
* Extract common variables to common script in bin dirFelix Mulder2016-06-213-154/+141
|
* Remove call to `scala` in dotrFelix Mulder2016-06-211-3/+31
|
* Fix #1323: change sbt interface dependency to allow artifact resolution by ↵Felix Mulder2016-06-211-17/+24
| | | | coursier
* Rework dotc to choose correct packages fixing #1321Felix Mulder2016-06-201-38/+80
| | | | | | | | | | | | | | New algorithm similar to proposal by @DarkDimius: 1. Bash script checks for existance of `$DOTTY_ROOT/.packages`, if not found - rebuilds all packages and places their full paths in the `.packages` file in the following order: - dotty-interfaces - dotty - dotty-tests 2. Checks if there are any files newer than those contained within `.packages` and if so - rebuilds that package 3. Runs Java with correct classpath setup
* Add sbt incremental compilation supportGuillaume Martres2016-05-281-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To test this with sbt, see https://github.com/lampepfl/dotty/wiki/Using-Dotty-with-sbt The following flags are added: - -Yforce-sbt-phases: Run the phases used by sbt for incremental compilation (ExtractDependencies and ExtractAPI) even if the compiler is ran outside of sbt, for debugging. - -Ydump-sbt-inc: For every compiled foo.scala, output the API representation and dependencies used for sbt incremental compilation in foo.inc, implies -Yforce-sbt-phases. This commit introduces two new phases which do not transform trees: - `ExtractDependencies` which extracts the dependency information of the current compilation unit and sends it to sbt via callbacks - `ExtractAPI` which creates a representation of the API of the current compilation unit and sends it to sbt via callbacks Briefly, when a file changes sbt will recompile it, if its API has changed (determined by what `ExtractAPI` sent) then sbt will determine which reverse-dependencies (determined by what `ExtractDependencies` sent) of the API have to be recompiled depending on what changed. See http://www.scala-sbt.org/0.13/docs/Understanding-Recompilation.html for more information on how sbt incremental compilation works. This phase was originally based on https://github.com/adriaanm/scala/tree/sbt-api-consolidate/src/compiler/scala/tools/sbt which attempts to integrate the sbt phases into scalac (and is itself based on https://github.com/sbt/sbt/tree/0.13/compile/interface/src/main/scala/xsbt), but it has been heavily refactored and adapted to Dotty. The main functional differences are: - ExtractDependencies runs right after Frontend (so that we don't lose dependency informations because of the simplifications done by PostTyper), but ExtractAPI runs right after PostTyper (so that SuperAccessors are part of the API). - `ExtractAPI` only extract types as they are defined and never "as seen from" some some specific prefix, see its documentation for more details. - `ExtractDependenciesTraverser` and `ExtractUsedNames` have been fused into one tree traversal in `ExtractDependenciesCollector`. TODO: Try to run these phases in parallel with the rest of the compiler pipeline since they're independent (except for the sbt callbacks in `GenBCode`) ?
* silence `cd` in scriptFelix Mulder2016-05-261-1/+1
|
* Rename `dotty` script to `dotr`Felix Mulder2016-05-261-0/+0
|
* Start REPL on no args in dotty script, fix backticksFelix Mulder2016-05-262-10/+8
|
* Add dotty runner script able to run dotty-compiled class with `main`Felix Mulder2016-05-261-0/+25
|
* fix newline in DOTTY_ROOT when cd produces outputOndrej Lhotak2016-05-251-1/+1
|
* simple integration with jlineliu fengyun2016-04-051-1/+1
|
* fix command line processing errorliu fengyun2016-03-151-2/+2
|
* Fix `bin/dotc` checkjar of wrong packageFelix Mulder2016-03-011-1/+1
|
* Add a `dotty-interfaces` packageGuillaume Martres2016-02-281-7/+11
| | | | | | | | | | | | | | | | | | | | | | We introduce a new entry point for the compiler in `dotty.tools.dotc.Driver`: ``` def process(args: Array[String], simple: interfaces.SimpleReporter, callback: interfaces.CompilerCallback): interfaces.ReporterResult ``` Except for `args` which is just an array, the argument types and return type of this method are Java interfaces defined in a new package called `dotty-interfaces` which has a stable ABI. This means that you can programmatically run a compiler with a custom reporter and callbacks without having to recompile it against every version of dotty: you only need to have `dotty-interfaces` present at compile-time and call the `process` method using Java reflection. See `test/test/InterfaceEntryPointTest.scala` for a concrete example. This design is based on discussions with the IntelliJ IDEA Scala plugin team. Thanks to Nikolay Tropin for the discussions and his PR proposal (see #1011).
* bin/dotc: fix "-d" argumentGuillaume Martres2016-01-041-2/+2
| | | | | It's already used to specify an output folder, don't try to interpret it as a shortcut for -debug
* Fix bug in dotc script.Dmitry Petrashko2015-10-231-1/+1
| | | | Used to always use bootstrapped version
* Quick&dirty bootstrapDmitry Petrashko2015-10-221-3/+13
| | | | dot script now has -bootstrapped option that will use dotty-compiled-by-dotty.
* bin/dotc: add an option to run -tasty.Dmitry Petrashko2015-09-141-1/+2
| | | | @vladimirNik, should simplify your life
* Closes 703Alexander Myltsev2015-07-091-4/+23
| | | | | - Fix typo in JLINE_JAR - Implement proper Java launch in Cygwin
* Support rebuilding tests in dotc, be smart about sbt incremental compilation.Dmitry Petrashko2015-05-271-3/+4
|
* Rebuild dotc if new *.scala files are found in `dotty/src`Dmitry Petrashko2015-05-271-0/+9
|
* dotc: Get versions of all dependencies from Build.scalaDmitry Petrashko2015-05-041-13/+21
|
* Fix quadratic running type of bin/dotc bash script.Dmitry Petrashko2015-04-231-3/+3
| | | | See https://github.com/scala/scala/pull/4465 for details.
* Update version of scalac-compiler fork.Dmitry Petrashko2015-04-161-5/+5
| | | | | | | This update allows to have non-static lambdas. It doesn't mean that we should emit such, as they are potential memory leak. See #480 Fixes #470
* Update dotc script to use scalac 2.11.5-20150402-193021-0c75410da3Dmitry Petrashko2015-04-041-1/+1
|
* Update version of scalac fork.Dmitry Petrashko2015-03-111-1/+1
| | | | | Includes fixed for emitting string concatenation if string originates from an array. Eg `"hello " + Array("world")(0)`
* Add dotty repl & type stealerDmitry Petrashko2015-02-171-9/+16
| | | | | | | | | | Dotty requires a mangled bootclasspath to start. It means that `console` mode of sbt doesn't work for us. At least I wasn't able to make sbt fork in console, so instead I've added a Scala-repl into dotty itself :-) It would be good to make it use dotty one day when we have a backend :-)
* unset CDPATH in bin/dotc to make ( cd && pwd ) work correctlyOndrej Lhotak2015-01-081-1/+1
| | | | | | | | When CDPATH is set, cd echoes the directory that it is switching to. The ( cd && pwd ) pattern then prints the directory twice, causing a mangled path. See https://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
* Update version of scalac forkDmitry Petrashko2014-12-161-1/+1
|
* Modify runner script to include modified scalac on class path.Dmitry Petrashko2014-12-161-3/+10
|
* Add option to optimize the JVM for short-runnning applicationsGuillaume Martres2014-11-171-0/+3
| | | | | | | | | | Ideally, dotc should reuse a resident compiler and we should not fork sbt for every task. Until this happens, this option is useful for development. Fixes #222. Usage: $ sbt -DOshort="" $ ./bin/dotc -Oshort foo.scala
* Use the final scala 2.11.George Leontiev2014-06-231-2/+3
|
* Bringing back dotc script that was accidentely deleted.Dmitry Petrashko2014-03-071-0/+232
|
* Performance improvement: Avoid unncecessary allocations of ListBufferMartin Odersky2014-02-261-232/+0
| | | | There were a lot in StoreReporter, as we are creating about 0.5M new ones per self-compile.
* Script for running compiler outside sbtDmitry Petrashko2014-02-201-0/+232