Don't use quotes in predefined macro redefinition Reason: https://buildserver.labs.intellij.net/buildConfiguration/Kotlin_KotlinDev_KotlinNativePreCommitComposite/227673599 :kotlin-native:backend.native:genEnvInteropStubs failed on Windows x86_64: error: definition of macro '__DATE__' differs between the precompiled header ('"__DATE__"') and the command line ('__DATE__')
diff --git a/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt b/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt index 92d37f0..5797f449 100644 --- a/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt +++ b/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt
@@ -505,7 +505,7 @@ // Hence, macro redefinitions are created at the earliest possible point to spread into all libclang invocations. val predefinedMacros = listOf("__DATE__", "__TIME__", "__TIMESTAMP__", "__FILE__", "__FILE_NAME__", "__BASE_FILE__", "__LINE__") val predefinedMacroRedefinitions = listOf("-Wno-builtin-macro-redefined") + predefinedMacros.map { - "-D$it=\"$it\"" + "-D$it=$it" } val compilation = CompilationImpl(