From f508ac3a376d241b152a19b92d2588d2ef8ec555 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Mon, 13 May 2019 00:40:39 +0300 Subject: [PATCH] Switch to older x86 CPU in Windows x86 codegenerator. --- konan/konan.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/konan/konan.properties b/konan/konan.properties index 996cf1ad6e7..735f5882423 100644 --- a/konan/konan.properties +++ b/konan/konan.properties @@ -435,11 +435,11 @@ 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 slower -emulated-tls option. # See https://youtrack.jetbrains.com/issue/KT-27654. # TODO: remove, once fixed in mingw, check with the bug testcase. -# -mcpu=sandybridge makes sure that cogenerator knows which CPU flavour to emit code for. +# -mcpu=pentium4 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 +llvmLtoFlags.mingw_x86 = -emulated-tls -mcpu=pentium4 llvmLtoOptFlags.mingw_x86 = -O3 -function-sections llvmLtoNooptFlags.mingw_x86 = -O1 linkerNoDebugFlags.mingw_x86 = -Wl,-S