cxgeorge 24 лет назад
Родитель
Сommit
6d78d2ff7d
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      dtool/pptempl/Global.pp

+ 3 - 4
dtool/pptempl/Global.pp

@@ -342,11 +342,10 @@
 
 
 // This variable returns the name of the fake precompiled header cxx
 // This variable returns the name of the fake precompiled header cxx
 // that will be used to force linking of the generated pch .obj into libs
 // that will be used to force linking of the generated pch .obj into libs
-// returns non-empty if sources var contains a *_headers.h
-// should probably use PRECOMPILED_HEADER var directly here instead
+
 #defer get_pch_outputcxx \
 #defer get_pch_outputcxx \
-  $[if $[and $[DO_PCH], $[filter %_headers.h, $[get_sources]]], \
-  $[TARGET]_headers.cxx]
+  $[if $[and $[DO_PCH], $[PRECOMPILED_HEADER]], \
+  $[patsubst %.h,%.cxx, $[PRECOMPILED_HEADER]]]
 
 
 // This variable returns the name of the interrogate module, if the
 // This variable returns the name of the interrogate module, if the
 // current metalib target should include one, or empty string if it
 // current metalib target should include one, or empty string if it