[K/N] Use "user" version of LLVM in distribution
This commit is contained in:
@@ -303,6 +303,17 @@ task distCompiler(type: Copy) {
|
|||||||
into('konan')
|
into('konan')
|
||||||
include('**/*.properties')
|
include('**/*.properties')
|
||||||
filter(ReplaceTokens, tokens: [compilerVersion: konanVersionFull.toString()])
|
filter(ReplaceTokens, tokens: [compilerVersion: konanVersionFull.toString()])
|
||||||
|
// Set LLVM variant that will be used by default in the distribution.
|
||||||
|
// `user` - smaller, includes only necessary components.
|
||||||
|
// `dev` - bigger, includes (almost) every possible component. Use this one,
|
||||||
|
// if your feature requires component that is not a part of user distribution (yet).
|
||||||
|
// Note: by default konan.properties use `dev` variant because it is needed for building our LLVM dynamic library.
|
||||||
|
String llvmVariant = 'user'
|
||||||
|
filter(ReplaceTokens,
|
||||||
|
beginToken: '$',
|
||||||
|
endToken: '',
|
||||||
|
tokens: [("llvm.${hostName}.dev".toString()): "\$llvm.${hostName}.${llvmVariant}".toString()]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
if (experimentalEnabled) {
|
if (experimentalEnabled) {
|
||||||
file('konan/experimentalTargetsEnabled').text = ""
|
file('konan/experimentalTargetsEnabled').text = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user