diff options
| -rw-r--r-- | xmake/actions/config/configfiles.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/actions/config/configfiles.lua b/xmake/actions/config/configfiles.lua index c6a135c25..1cf49881a 100644 --- a/xmake/actions/config/configfiles.lua +++ b/xmake/actions/config/configfiles.lua @@ -296,7 +296,11 @@ function _generate_configfile(srcfile, dstfile, fileinfo, targets) os.cp(dstfile_tmp, dstfile) generated = true else - os.touch(dstfile, {mtime = os.time()}) + -- I forget why I added it here, but if we switch the option, mode, + -- this will cause the whole project to be rebuilt, + -- even if nothing in config.h has been changed. + -- + --os.touch(dstfile, {mtime = os.time()}) end else os.cp(dstfile_tmp, dstfile) |
