[K/N] Remove obsolete hack

Besides obsolescence, this hack is not working for "user" LLVM variant.
This commit is contained in:
Sergey Bogolepov
2021-08-09 21:33:11 +07:00
committed by Space
parent 8866ab5916
commit db9ff9a4ce
@@ -183,12 +183,7 @@ sealed class ClangArgs(
*/ */
val clangXXArgs: Array<String> = clangArgs + when (configurables) { val clangXXArgs: Array<String> = clangArgs + when (configurables) {
is AppleConfigurables -> arrayOf( is AppleConfigurables -> arrayOf(
"-stdlib=libc++", "-stdlib=libc++"
// Starting from Xcode 12.5, platform SDKs contain C++ stdlib.
// It results in two c++ stdlib in search path (one from LLVM, another from SDK).
// We workaround this problem by explicitly specifying path to stdlib.
// TODO: Revise after LLVM update.
"-nostdinc++", "-isystem", "$absoluteLlvmHome/include/c++/v1"
) )
else -> emptyArray() else -> emptyArray()
} }