File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 5353 <Add library =" $(libs4mingw)/boost/lib/libboost_system-mgw63-mt-x32-1_66.a" />
5454 <Add library =" $(libs4mingw)/boost/lib/libboost_regex-mgw63-mt-x32-1_66.a" />
5555 <Add library =" $(libs4mingw)/boost/lib/libboost_serialization-mgw63-mt-x32-1_66.a" />
56+ <Add library =" $(libs4mingw)/boost/lib/libboost_timer-mgw63-mt-s-x32-1_66.a" />
57+ <Add library =" $(libs4mingw)/boost/lib/libboost_chrono-mgw63-mt-s-x32-1_66.a" />
5658 </Linker >
5759 </Target >
5860 </Build >
9193 <Unit filename =" src/GchMagic.h" />
9294 <Unit filename =" src/H2GchAction.cpp" />
9395 <Unit filename =" src/H2GchAction.h" />
96+ <Unit filename =" src/InfoPackageScanned.h" />
9497 <Unit filename =" src/Loggers.cpp" />
9598 <Unit filename =" src/Loggers.h" />
9699 <Unit filename =" src/MingwCmdLineBuilder.cpp" />
111114 <Unit filename =" src/VcObj2ExeAction.h" />
112115 <Unit filename =" src/build.cpp" />
113116 <Unit filename =" src/config.cpp" />
114- <Unit filename =" src/config.h" />
115- <Unit filename =" src/config.h.in" />
117+ <Unit filename =" src/config.h" >
118+ <Option compile =" 1" />
119+ <Option weight =" 0" />
120+ </Unit >
116121 <Unit filename =" src/fwd.h" />
117122 <Unit filename =" src/gen.cpp" />
118123 <Unit filename =" src/global.cpp" />
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ struct InfoPackageScanned {
3535 fs::path referenced_vc_h_to_precompile;
3636 fs::path referenced_vc_cpp_to_generate_pch;
3737
38+ void clear ()
39+ {
40+ InfoPackageScanned new_obj;
41+ *this = new_obj;
42+ }
43+
3844private:
3945 friend class boost ::serialization::access;
4046 template <class Archive >
Original file line number Diff line number Diff line change @@ -197,6 +197,8 @@ void collect_source(fs::path src_path)
197197
198198 if (needScan) {
199199 // cout << pack_path << " pack NOT exists" << endl;
200+ // todo: pack可能之前load了东西,scan之前要清除掉。
201+ pack.clear ();
200202 scan (src_path, pack);
201203
202204 // 确保目录存在
You can’t perform that action at this time.
0 commit comments