aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* fix #1484: position of while incorrect in debugliu fengyun2017-02-101-1/+16
|
* println in executeScript, hoping to get around CI timeoutOlivier Blanvillain2017-02-101-1/+1
|
* Fix dotr/dotc to handle corrupted .packagesOlivier Blanvillain2017-02-102-3/+4
|
* Quote every string in scriptOlivier Blanvillain2017-02-103-35/+36
|
* Add println in TestScripts to prevent CI timeoutOlivier Blanvillain2017-02-071-1/+3
|
* Test that dotc script works after deleting .packagesOlivier Blanvillain2017-02-071-5/+12
|
* Fix dotr/dotc scriptsOlivier Blanvillain2017-02-071-1/+1
|
* Fix script choosing wrong artefactFelix Mulder2016-11-221-1/+1
| | | | | | Depending on order, scripts might choose the wrong jar (i.e. test instead of non test). This commit addresses that by sedding away results which have `javadoc` or `tests` in the jar name
* bin/common: jar is dotty-compiler, not dottyGuillaume Martres2016-11-221-1/+1
|
* Fix rebuild on change in scriptsFelix Mulder2016-11-221-0/+1
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-222-14/+14
|
* Add bin project to separate scripted tests from compiler testsFelix Mulder2016-11-221-0/+91
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-221-2/+2
|
* Remove compiler when running applications via dotrFelix Mulder2016-11-221-2/+1
|
* separate lib from compilerFelix Mulder2016-11-222-7/+14
|
* use usr/bin/env bash since it's more general then /bin/bashGuillaume Massé2016-10-113-3/+3
|
* 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
|