-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buck2/prelude: split cxx argfile into parts
Summary: Split cxx compile argsfile into 4 independent parts: 1. `.toolchain_cxx_args` with toolchain flags. 2. `.deps_cxx_args` with include paths for all transitive dependencies and exported flags. 3. `.target_cxx_args` target specific compiler and preprocessor flags coming from PACKAGE files and other flags which didn't fall into other categories. 4. `.file_prefix_cxx_args` with `-fdebug-prefix-map` flags. Later these can be sorted and split by the first letter of target name to improve cache hits further. Then all these mode files are added to single `.cxx_compile_argsfile` which is passed to the compiler. Keep top level argsfile with the same name to not change all the places where it's hardcoded, e.g. ios tests. Keep `args` and `args_without_file_prefix_args` in `CompileArgsfile` the same as before, they are mainly used by bxl scripts. Reviewed By: blackm00n Differential Revision: D62179090 fbshipit-source-id: 8ecfaf9c3dddf06703e63236d89d04834874ab37
- Loading branch information
1 parent
feffe52
commit 1401dcc
Showing
1 changed file
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters