diff options
| author | ruki <[email protected]> | 2023-02-09 22:34:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-09 22:34:43 +0800 |
| commit | 57b3f53abfd36fa1966ee1778e8dfb848725790c (patch) | |
| tree | ea8d0a13a31bcba03e3c536431034a76ad5c9203 | |
| parent | dcf64199466a7c61a4f04cf7014f73ffcb867a4d (diff) | |
improve configfiles
| -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) |
