summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/config/configfiles.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/config/configfiles.lua b/xmake/actions/config/configfiles.lua
index e99f3130c..ce435d774 100644
--- a/xmake/actions/config/configfiles.lua
+++ b/xmake/actions/config/configfiles.lua
@@ -74,7 +74,7 @@ function _get_configfiles()
table.insert(srcinfo.targets, target)
-- save preprocessors
- local preprocessor = target:extraconf("configfiles", srcfile, "preprocessor")
+ local preprocessor = fileinfo and fileinfo.preprocessor
if preprocessor then
srcinfo.preprocessors = srcinfo.preprocessors or {}
table.insert(srcinfo.preprocessors, preprocessor)