This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add bootstrap option `CLANG_BOOTSTRAP_USE_LIBCXX`
Needs ReviewPublic

Authored by aoli on Sep 2 2017, 12:16 AM.

Details

Summary

This option makes clang-bootstrap-deps depend on libcxx taret. It
allows stage2 build to link against libcxx libraries from stage1 build.

Event Timeline

aoli created this revision.Sep 2 2017, 12:16 AM
beanz edited edge metadata.Sep 8 2017, 1:38 PM

I'm not sure this change is sufficient to do what you're intending. I think you also need to pass the library path of the cxx library into the bootstrap configuration otherwise it will use the one from the sysroot.

aoli updated this revision to Diff 115588.Sep 17 2017, 3:25 PM

Pass cxx library path into the bootstrap configuration.

aoli added a comment.Sep 17 2017, 3:29 PM

Adding LLVM_LIBRARY_DIR to rpath can solve this problem. But I'm not sure if it will have any side effects.