Commit Graph

283 Commits

Author SHA1 Message Date
Andrey Breslav bc6c8e980e Module scripts are compiled in an environment with JDK & Annotations 2012-07-20 19:29:46 +04:00
Andrey Breslav 15d469156a Reverting command line reporting: it breaks tests 2012-07-14 12:15:30 +04:00
Andrey Breslav 95b93322b3 Report the command line that was passed if its format is wrong 2012-07-14 11:56:29 +04:00
Evgeny Gerashchenko 3bf8321e3c Fixed evil bug in processing command-line args: classpath was added as annotations path. 2012-07-11 15:44:43 +04:00
Evgeny Gerashchenko 8050b96f27 Fixed code outside main project which was broken after refactoring. 2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko 90a7b17fd8 Creating empty compiler configuration in module script instead of default. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a2765899b5 Removed obsolete -stdlib CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b958886e23 Removed obsolete -jdkAnnotations CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko a02658b1a6 Removed obsolete -mode CLI parameter. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko 531167bcee Added -builtins CLI option. Using it instead of "-mode stdlib" to enable special frontend and backend modes. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko f7290d178b Replaced passing compiler special mode to JetTypeMapper with special enum type. Enum type means if builtin types should be mapped to Java standard classes in generated bytecode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 5becb4efb1 Passing "stubs" flag to K2JVMCompileEnvironmentConfiguration to avoid checking compiler special mode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko aef2c372e1 Inlined the only usage of CompilerSpecialMode.isStubs(). 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko a0b636d561 Moved CompilerSpecialMode.includeXXX() methods into configuration generators to make it clear that they are used only during initialization. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 684d345dce Removed CompilerDependencies class. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e82ab70bc Got rid of using CompilerDependencies in JetCoreEnvironment. CompilerConfiguration is passed instead. 2012-07-07 23:07:17 +04:00
Evgeny Gerashchenko c833ca251f Moved CompilerDependencies.findRtJar() method to PathUtil. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 8078c27c36 Got rid of actual using CompilerDependencies in CompilerEnvironmentUtil. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 590ab38e55 Got rid of actual using CompilerDependencies in REPL interpreter classes. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 97e0ee4a29 Got rid of storing CompilerDependencies in JetCoreEnvironment (storing CompilerSpecialMode instead). 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 27c13d8c45 Got rid of actual using compiler dependencies in some classes (using only mode). Affected classes: K2JVMCompiler, KotlinToJVMBytecodeCompiler, TestlibTest.
Got rid of actual using compiler dependencies in KotlinToJVMBytecodeCompiler.

Got rid of actual using compiler dependencies in TestlibTest.
2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 88ea4c760c Added "noJdk", "noStdlib" and "noJdkAnnotations" compiler options. Marked "stdlib", "jdkAnnotations" and "mode" options as deprecated. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 4781d62dd2 Created CompilerConfiguration and classpath/annotations path keys. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 5a88d28154 Got rid of dependency on compiler dependencies in injector for TDA for JVM. 2012-07-07 20:33:22 +04:00
James Strachan 54c8382813 added more descriptive logging 2012-07-05 11:02:54 +01:00
James Strachan 98f6650236 added a (currently disabled) test case for compiling the JS code from the kotlin-js-library maven build 2012-07-04 22:03:08 +01:00
Pavel V. Talanov 92231d2eae Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java
	js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestToJSTest.java
2012-07-04 18:32:24 +04:00
Pavel V. Talanov dd43f6b699 Deal with absence of js library. fix K2JSMessagingTest 2012-07-03 17:58:58 +04:00
Pavel V. Talanov d6ffb42497 pull https://github.com/develar/kotlin ecma5-iter3 Make most of the tests work.
Thanks to develar.
2012-07-03 15:27:37 +04:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Evgeny Gerashchenko fa3e3ee104 Registered annotations provider as a service instead of static class to avoid problems with projects disposal. 2012-07-03 13:35:53 +04:00
Evgeny Gerashchenko a4ab2afa94 Better method names. 2012-07-03 13:35:53 +04:00
Evgeny Gerashchenko ef19700283 Added attaching external annotations via module script. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko 07234c7487 Added attaching external annotations via command-line parameter. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko 206628da82 Added -annotations command-line parameter. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko d64a7397b3 Added default implementation for ExternalAnnotationsProvider to be used in compiler. 2012-07-03 13:35:52 +04:00
Stepan Koltsov 2f64000917 repl: -classpath argument 2012-06-28 19:38:45 +04:00
Stepan Koltsov cd1211fcb3 repl: multiline 2012-06-28 19:38:44 +04:00
Stepan Koltsov dbc0d3c4e0 repl: better command parsing 2012-06-28 19:38:44 +04:00
Stepan Koltsov c0e8f3b911 repl: load command 2012-06-28 19:38:44 +04:00
develar 8d764af432 KT-2154 2012-06-28 09:57:20 +04:00
develar 9443007dc3 support multiple source roots 2012-06-28 09:57:20 +04:00
develar 63e41b771f KT-2298 js inter-module communication 2012-06-28 09:57:19 +04:00
develar 06ecb45004 js compiler: module dependency 2012-06-28 09:57:18 +04:00
Evgeny Gerashchenko 0dd64837c0 Added checking for unresolved templates in CLI. Added test. 2012-06-20 18:58:24 +04:00
Stepan Koltsov a95cc798a2 remove JetStandardLibrary dependency from jvm backend 2012-06-17 03:53:12 +04:00
Nikolay Krasko 5f3c3d7e2b Fix test for Windows by converting internal line separators too 2012-06-15 17:19:17 +04:00
Stepan Koltsov f074d493c8 work around broken kdoc test 2012-06-14 22:44:44 +04:00