Add cmake/modules directory to cmake module search path as otherwise CMake fails to find CheckAtomic module when performing standalone build.
Note: I don't have commit access
Differential D23881
[LLDB] [cmake]: Add local module directory to search path for standalone build mgorny on Aug 25 2016, 10:27 AM. Authored by
Details
Add cmake/modules directory to cmake module search path as otherwise CMake fails to find CheckAtomic module when performing standalone build. Note: I don't have commit access
Diff Detail Event TimelineComment Actions
That won't work since it would require source dir to be still available when building LLDB. The point of stand-alone build is to avoid that, and after applying this patch (and the regex fix), I'm able to achieve that. Using LLVM_MAIN_SRC_DIR would be a regression. Comment Actions There was rejected a proposal to add CheckAtomic copy to LLDB. Not a proposal to install CheckAtomic for more customers of LLVM. Comment Actions Ah, sorry, I didn't read that thoroughly. Should I create a patch for that, or will you handle it from here? |