Skip to content

Commit 5909784

Browse files
committed
fix bug
1 parent 4d8f194 commit 5909784

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

cpps.cbp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
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>
@@ -91,6 +93,7 @@
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" />
@@ -111,8 +114,10 @@
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" />

src/InfoPackageScanned.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3844
private:
3945
friend class boost::serialization::access;
4046
template<class Archive>

src/scan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
// 确保目录存在

0 commit comments

Comments
 (0)