bazelembedded / modular_cc_toolchains

MIT License
3 stars 1 forks source link

feat: Add a fully working toolchain #13

Open silvergasp opened 1 year ago

silvergasp commented 1 year ago

Got a little bit more work to clean up the UI. It does currently require libstdc++-9-dev if your on ubuntu, as I've hard coded the system include paths. I'll admit I'm a bit stuck on some of these compiler errors https://github.com/bazelembedded/modular_cc_toolchains/actions/runs/4591805987/jobs/8108291820#step:5:661. Although some basic compilation/runtime tests I've done locally sort of demonstrate that the toolchain works for more basic applications.

silvergasp commented 1 year ago

Sorry for being slow on this front :)

silvergasp commented 1 year ago

Regarding the compiler errors: could it be that some cxx_builtin_include_directories are still missing?

FWIW for Fuchsia clang (https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang) I would use,

  "%package(@clang//)%/include/c++/v1/x86_64-unknown-linux-gnu/c++/v1",
  "%package(@clang//)%/include/c++/v1",
  "%package(@clang//)%/lib/clang/15.0.0/include",
  "%package(@clang//)%/lib/clang/15.0.0/share",

I wonder if Fuchsia clang + Fuchsia sysroot (https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/sysroot) would work in CI.

Is the %package(@clang//)% syntax documented anywhere I haven't seen this before.