From 83b6b3991058b3e69099d47e73c68a1c7b2d6333 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Tue, 21 Sep 2021 19:20:18 +0300 Subject: [PATCH] [K/N] Fix runtime compilation flags. --- .../main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcode.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcode.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcode.kt index 84ead77fd5d..01405c2a406 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcode.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcode.kt @@ -97,6 +97,7 @@ open class CompileToBitcode @Inject constructor( listOf("-std=gnu11", "-O3", "-Wall", "-Wextra", "-Werror") Language.CPP -> listOfNotNull("-std=c++17", "-Werror", "-O2", + "-fno-aligned-allocation", // TODO: Remove when all targets support aligned allocation in C++ runtime. "-Wall", "-Wextra", "-Wno-unused-parameter" // False positives with polymorphic functions. )