Commit Graph

34 Commits

Author SHA1 Message Date
Vasily Levchenko 65dd798818 [build][native support] intoduced new native support. 2021-02-24 11:07:18 +01:00
Vasily Levchenko e031da6e70 [build][dependencies] \r -> \n 2021-02-24 11:07:18 +01:00
Vasily Levchenko c85c3ac123 [build] joint (step 1)
(cherry picked from commit 7d0775f7e69ab900200bcf1fa78b94d68e6bd4f6)
2021-02-24 11:04:59 +01:00
Paul Idstein 3f15774cb2 Fix -Xoverride-konan-properties for Apple strip
When building an optimised release dynamic framework we see a lot of local symbols in Mach-O. When calling `strip -x` this can be dramatically reduced whilst still having a usable artefact.

Current logic seems to keep symbols for DSYM extraction in debug light mode. But only strips hardcoded debug symbols (`strip -S`) afterwards.

Introduce new stripFlags for Apple compilation to allow optimization for release with DSYM builds
2021-02-24 10:53:42 +01:00
Sergey Bogolepov fddf28ac47 Support for macos_arm64 target in backend
(cherry picked from commit 82775e93c1389f21f9be97bd0edfd16dd50300ea)
2021-02-09 09:00:48 +01:00
LepilkinaElena 2331475776 Use klib prefix for temporary directory for klibs (#4686) 2021-02-09 09:00:48 +01:00
Sergey Bogolepov d82109cc92 Fix KT-43502 by adding -fPIC 2021-02-09 09:00:46 +01:00
Vasily Levchenko 8b2f0d644b [build] kotlin.*Compile: -Xskip-prerelease-check
(cherry picked from commit 57172ac6ead928b565fefaf49d8405a07c856e25)
2021-02-01 16:54:15 +01:00
Roman Artemev fde107b181 [KLIB] Adapt new klib io API in K/N
(cherry picked from commit 70fabb6a9db83db5f5b26b54f2656655316ea31c)
2021-02-01 16:54:15 +01:00
Pavel Punegov 95a92d865e Adds workaround for IDEA-257366 2021-02-01 16:54:14 +01:00
Alexander Shabalin 6cc60ad6a2 Support sanitizers in runtime tests (#4622) 2021-01-26 17:38:02 +03:00
Sergey Bogolepov 5eae55be80 [Linux] Fix linker arguments order 2020-12-21 16:18:37 +01:00
Sergey Bogolepov 0f733b6baf Move linker selection to konan.properties 2020-12-21 16:18:37 +01:00
Sergey Bogolepov e8e705bf68 Introduce property for relocation mode 2020-12-21 16:18:37 +01:00
Sergey Bogolepov ecd3ea261c Move crt* files location to konan.properties 2020-12-14 15:31:10 +01:00
Sergey Bogolepov 61ece4d364 Cleanup Linker.kt a little 2020-12-14 15:31:10 +01:00
Sergey Bogolepov 6565d18a9f Use gold linker instead of lld on Windows and Linux
lld is doing something wrong for linux_arm32_hfp and linux_arm64 targets, so we fallback to gold linker on Linux and Windows.
See KT-41725 and KT-42446
2020-12-14 15:31:10 +01:00
Sergey Bogolepov ddaf477849 Support new linux_arm32_hfp_toolchain 2020-12-14 15:31:10 +01:00
Sergey Bogolepov 43bfeb5c33 Support new linux_arm64 toolchain 2020-12-14 15:31:10 +01:00
Sergey Bogolepov 73c27df1be Support new linux_mips32 and linux_mipsel32 toolchains 2020-12-14 15:31:07 +01:00
Sergey Bogolepov 9e93ee81e3 Add emulator properties to gcc configurables 2020-12-14 15:25:37 +01:00
Sergey Bogolepov 9c082775e6 Support caches on ios_arm64 2020-12-14 15:25:37 +01:00
Sergey Bogolepov 14617e2fe2 [MinGW] remove obsolete flag
See https://github.com/msys2/MINGW-packages/issues/5321
2020-12-14 15:25:36 +01:00
Sergey Bogolepov 87e4bbe0f6 [ClangArgs] Move sysroot setting to single place 2020-12-14 15:25:36 +01:00
Sergey Bogolepov 23223f7bb0 [ClangArgs] use --sysroot for all targets
Change `-isysroot` to `--sysroot` because it is the same thing on darwin targets.
2020-12-14 15:25:36 +01:00
Sergey Bogolepov c779ce2e6d Minor refactoring and reformatting of ClangArgs 2020-12-14 15:25:36 +01:00
Sergey Bogolepov 55b1e0faf0 [konan.properties] Make gccToolchain a target property
Previously, we used the same gccToolchain for all linux-based targets. It is dangerous because sysroot and toolchain might be incompatible. Since c82b843e we moved to unified and reproducible way to build toolchains, so we have a separate gccToolchain for each target.
2020-12-14 15:25:36 +01:00
Sergey Bogolepov 20931eebe1 [KT-43276] Add watchos_x64 target 2020-11-28 21:07:20 +01:00
Ilya Gorbunov bf4e53ae06 Use Files API for creating temp files and directories
(cherry picked from commit b9df8591d043c79f2032b782efc7539c747c2625)
2020-11-28 21:01:56 +01:00
Alexander Gorshenev edfdc88d6d Dropped outdated klib version compatibility mechanisms
(cherry picked from commit 31fe91b6553ba08b83c581bfa8341e4a21805e97)
2020-11-28 20:56:42 +01:00
LepilkinaElena 26ccdbdc18 Used lazy value of base class not to load properties from manifest twice (#4487) 2020-11-28 20:49:00 +01:00
Sergey Bogolepov 14526e57bc [Linker] Move gcc linkage flags to konan.properties 2020-11-28 20:48:58 +01:00
Sergey Bogolepov 431a7c9ba9 [KT-42234] Moved optimization flags to konan.properties
Combined with KT-40670, it simplifies tuning of LLVM optimization and compilation pipeline.
2020-11-28 20:48:57 +01:00
Stanislav Erokhin f624800b84 Move everything under kotlin-native folder
I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.

Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
2020-10-27 21:00:28 +03:00