libcxx: update to compile with -std=c++20

This is required to successfully build libc++.
This commit is contained in:
Andrew Kelley 2021-10-01 11:40:06 -07:00
parent 1bbec59e07
commit 456d7e5f5f

View File

@ -158,7 +158,7 @@ pub fn buildLibCXX(comp: *Compilation) !void {
try cflags.append("-fPIC");
}
try cflags.append("-nostdinc++");
try cflags.append("-std=c++14");
try cflags.append("-std=c++20");
try cflags.append("-Wno-user-defined-literals");
c_source_files.appendAssumeCapacity(.{