diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts index 9a702ff8065..b221e6411c7 100644 --- a/lib/compilers/clang.ts +++ b/lib/compilers/clang.ts @@ -155,10 +155,14 @@ export class ClangCompiler extends BaseCompiler { return this.forceDwarf4UnlessOverridden(options); } - // Cross-compiling for clang with -stdlib=libc++ is currently (at least up to 18.1.0) broken: + // Clang cross-compile with -stdlib=libc++ is currently (up to at least 18.1.0) broken: // https://github.com/llvm/llvm-project/issues/57104 + // + // To smoke-test future versions, check if this succeeds: https://godbolt.org/z/7dKrad7Wc + // // Below is a workaround discussed in CE issue #5293. If the llvm issue is ever resolved it would be best // to apply this only for clang versions up to the official resolution. + override filterUserOptions(userOptions: string[]): string[] { if ( this.lang.id === 'c++' &&