tbaeder added inline comments.

================
Comment at: clang/lib/Driver/ToolChains/WebAssembly.cpp:448
+    addSystemInclude(DriverArgs, CC1Args,
+                     getDriver().SysRoot + "/include/c++/11");
+    break;
----------------
sbc100 wrote:
> Where does `11` come from here?  Do other drivers hardcode this the same way?
`11` is just the current version. `lib/Driver/ToolChains/Gnu.cpp` figures out 
the correct version here via `GCCInstallationDetector`. I thought hard-coding 
is find for wasm because the `v1` for libc++ above is also hardcoded and 
`Gnu.cpp` figures that out dynamically as well (in `addLibCxxIncludePaths`).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117888/new/

https://reviews.llvm.org/D117888

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to