[flang-commits] [flang] [flang] Use precompiled parsing headers (PR #130600)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Mar 10 06:59:40 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"]]
+)
----------------
tblah wrote:

What I am interested in here is whether we can design something that scales to using precompiled headers in other very slow translation units (e.g. flang/lib/Lower/*)

https://github.com/llvm/llvm-project/pull/130600


More information about the flang-commits mailing list