Skip to content

Commit daab35e

Browse files
Merged PR 12965218: Add post-processing step to symcrypt_static MSBuild to create NoCIL lib
+ Some scenarios of Windows SymCrypt static lib ingestion struggle with LTCG static lib, this PR adds an explicit post-processing step in MSBuild to create NoCIL static libs for these scenarios and includes them in the vpack
1 parent 8e71ea0 commit daab35e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

SymCryptPackage.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@
8787
"dest" : "lib/symcrypt_static.lib",
8888
"platform" : "win32"
8989
},
90+
{
91+
"source" : "${BIN_DIR}/lib/symcrypt_static_NoCIL.lib",
92+
"dest" : "lib/symcrypt_static_NoCIL.lib",
93+
"platform" : "win32"
94+
},
9095
{
9196
"source" : "${BIN_DIR}/dll/symcrypt.dll",
9297
"dest" : "dll/symcrypt.dll",

lib/symcrypt_static.vcxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
<ClCompile>
2020
<AdditionalIncludeDirectories>$(ProjectDir);</AdditionalIncludeDirectories>
2121
</ClCompile>
22+
<!-- Also Generate NoCIL static lib -->
23+
<CustomBuildStep>
24+
<Command>link /cvtcil $(TargetPath) /out:$(TargetDir)$(TargetName)_NoCIL$(TargetExt)</Command>
25+
<Outputs>$(TargetDir)$(TargetName)_NoCIL$(TargetExt)</Outputs>
26+
<Inputs>$(TargetPath)</Inputs>
27+
</CustomBuildStep>
2228
</ItemDefinitionGroup>
2329
<ItemGroup>
2430
<ClCompile Include="3des.c" />

0 commit comments

Comments
 (0)