|
75 | 75 | <PreprocessorDefinitions>WIN32;_WINDOWS;_USRDLL;OPENLESSIME_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
76 | 76 | <ConformanceMode>true</ConformanceMode> |
77 | 77 | <LanguageStandard>stdcpp17</LanguageStandard> |
| 78 | + <!-- 静态链接 CRT:让 OpenLessIme.dll 自带 MSVCP / VCRUNTIME / UCRT, |
| 79 | + 避免被宿主进程(如 QQ)app/ 目录下的私有 MSVCP140 副本劫持。 |
| 80 | + QQ 把 MSVCP140.dll 放在 versions/<ver>/resources/app/,DLL 搜索 |
| 81 | + 顺序优先 → 我们的 std::* 调用会跑 QQ 那份旧版 → ABI 漂移 → 0xc0000005。 |
| 82 | + DLL 大小 +~300 KB;DLL 内部 STL 不再可跨边界共享(我们也不需要)。 --> |
| 83 | + <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
78 | 84 | </ClCompile> |
79 | 85 | <Link> |
80 | 86 | <SubSystem>Windows</SubSystem> |
|
89 | 95 | <PreprocessorDefinitions>WIN32;_WINDOWS;_USRDLL;OPENLESSIME_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
90 | 96 | <ConformanceMode>true</ConformanceMode> |
91 | 97 | <LanguageStandard>stdcpp17</LanguageStandard> |
| 98 | + <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> |
92 | 99 | </ClCompile> |
93 | 100 | <Link> |
94 | 101 | <SubSystem>Windows</SubSystem> |
|
105 | 112 | <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;OPENLESSIME_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
106 | 113 | <ConformanceMode>true</ConformanceMode> |
107 | 114 | <LanguageStandard>stdcpp17</LanguageStandard> |
| 115 | + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
108 | 116 | </ClCompile> |
109 | 117 | <Link> |
110 | 118 | <SubSystem>Windows</SubSystem> |
|
123 | 131 | <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;OPENLESSIME_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
124 | 132 | <ConformanceMode>true</ConformanceMode> |
125 | 133 | <LanguageStandard>stdcpp17</LanguageStandard> |
| 134 | + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> |
126 | 135 | </ClCompile> |
127 | 136 | <Link> |
128 | 137 | <SubSystem>Windows</SubSystem> |
|
0 commit comments