[PATCH] D22415: Enable cross-compilation across architectures on android
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 14:41:43 PDT 2016
fjricci added a comment.
After further investigation, I think the patch in its current form is still the best solution.
The sanitizers add `CMAKE_CXX_FLAGS`, inside of `add_compiler_rt_object_libraries`. The builtins, which are C sources, require an analagous addition of `CMAKE_C_FLAGS`.
However, because of the shared usage of `add_compiler_rt_runtime` to compile non-C objects, the flags cannot be added in that function.
That makes the current location the most correct location to add the flags.
https://reviews.llvm.org/D22415
More information about the llvm-commits
mailing list