Pass CPU information to codegenerator, to fix mingw_x86 opt. (#2870)
This commit is contained in:
@@ -390,10 +390,14 @@ dependencies.macos_x64-mingw_x86 = \
|
||||
|
||||
quadruple.mingw_x86 = i686-w64-mingw32
|
||||
targetSysRoot.mingw_x86 = msys2-mingw-w64-i686-gcc-7.4.0-clang-llvm-6.0.1
|
||||
# For using with Universal Windows Platform (UWP) we need to use this slower option.
|
||||
# For using with Universal Windows Platform (UWP) we need to use slower -emulated-tls option.
|
||||
# See https://youtrack.jetbrains.com/issue/KT-27654.
|
||||
# TODO: remove, once fixed in mingw, check with the bug testcase.
|
||||
llvmLtoFlags.mingw_x86 = -emulated-tls
|
||||
# -mcpu=sandybridge makes sure that cogenerator knows which CPU flavour to emit code for.
|
||||
# Can be seen on optimized build and FP tests, where value is passed in coprocessor registers
|
||||
# by Kotlin and taken from SSE registers by C code.
|
||||
# TODO: once this information is available in function attributes, we can remove this flag.
|
||||
llvmLtoFlags.mingw_x86 = -emulated-tls -mcpu=sandybridge
|
||||
llvmLtoOptFlags.mingw_x86 = -O3 -function-sections
|
||||
llvmLtoNooptFlags.mingw_x86 = -O1
|
||||
linkerNoDebugFlags.mingw_x86 = -Wl,-S
|
||||
|
||||
Reference in New Issue
Block a user