[flang-commits] [flang] [flang] Use precompiled parsing headers (PR #130600)
David Truby via flang-commits
flang-commits at lists.llvm.org
Mon Mar 10 07:46:18 PDT 2025
================
@@ -72,3 +72,11 @@ add_flang_library(flangFrontend
clangBasic
clangDriver
)
+
+target_precompile_headers(flangFrontend PRIVATE
+ [["flang/Parser/parsing.h"]]
+ [["flang/Parser/parse-tree.h"]]
+ [["flang/Parser/dump-parse-tree.h"]]
+ [["flang/Lower/PFTBuilder.h"]]
+ [["flang/Lower/Bridge.h"]]
+)
----------------
DavidTruby wrote:
That's generally what you would do, since the set of precompiled headers you want is probably different for each target (even if there is some overlap). This does lead to _some_ duplication of work, but certainly no more than there is now where we are compiling these headers not only in every target, but in every _TU_!
https://github.com/llvm/llvm-project/pull/130600
More information about the flang-commits
mailing list