[K/N] Fix runtime compilation flags.
This commit is contained in:
committed by
Space
parent
f4c5a047ac
commit
83b6b39910
+1
@@ -97,6 +97,7 @@ open class CompileToBitcode @Inject constructor(
|
|||||||
listOf("-std=gnu11", "-O3", "-Wall", "-Wextra", "-Werror")
|
listOf("-std=gnu11", "-O3", "-Wall", "-Wextra", "-Werror")
|
||||||
Language.CPP ->
|
Language.CPP ->
|
||||||
listOfNotNull("-std=c++17", "-Werror", "-O2",
|
listOfNotNull("-std=c++17", "-Werror", "-O2",
|
||||||
|
"-fno-aligned-allocation", // TODO: Remove when all targets support aligned allocation in C++ runtime.
|
||||||
"-Wall", "-Wextra",
|
"-Wall", "-Wextra",
|
||||||
"-Wno-unused-parameter" // False positives with polymorphic functions.
|
"-Wno-unused-parameter" // False positives with polymorphic functions.
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user