Skip to content

Commit a3fab96

Browse files
committed
normalize the flag path to make windows CI happy
1 parent 8cdbaa6 commit a3fab96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,10 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
12421242
Opts.RequireCxxInteropToImportCxxInteropModule =
12431243
!Args.hasArg(OPT_cxx_interop_disable_requirement_at_import);
12441244
if (const auto *A = Args.getLastArg(OPT_cxx_interop_libcxx_path)) {
1245-
Opts.cxxInteropCustomLibcxxPath = A->getValue();
1245+
// Normalize the C++ stdlib path so that it can be compared later.
1246+
SmallString<256> nativePath;
1247+
llvm::sys::path::native(A->getValue(), nativePath);
1248+
Opts.cxxInteropCustomLibcxxPath = nativePath.str();
12461249
}
12471250

12481251
Opts.VerifyAllSubstitutionMaps |= Args.hasArg(OPT_verify_all_substitution_maps);

0 commit comments

Comments
 (0)