msvc: enable minimal debug info for release builds
build: supply pdb file with msvc build
This commit is contained in:
parent
aa752c5bdc
commit
b1021b87b6
3 changed files with 7 additions and 5 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -80,7 +80,9 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{env.name}}
|
name: ${{env.name}}
|
||||||
path: ${{env.name}}/yapb.dll
|
path: |
|
||||||
|
${{env.name}}/yapb.dll
|
||||||
|
${{env.name}}/yapb.pdb
|
||||||
|
|
||||||
bot-release:
|
bot-release:
|
||||||
if: |
|
if: |
|
||||||
|
|
|
||||||
|
|
@ -195,13 +195,13 @@ elif os == 'windows' and (cxx =='msvc' or cxx == 'clang-cl')
|
||||||
# minor optimizations for release build
|
# minor optimizations for release build
|
||||||
if build_type == 'release'
|
if build_type == 'release'
|
||||||
cxxflags += [
|
cxxflags += [
|
||||||
'/GS-', '/Ob2', '/Oy', '/Oi', '/Ot', '/fp:precise', '/GF', '/GS-', '/GF', '/arch:SSE2'
|
'/GS-', '/Ob2', '/Oy', '/Oi', '/Ot', '/fp:precise', '/GF', '/GS-', '/GF', '/arch:SSE2', '/Zi'
|
||||||
]
|
]
|
||||||
|
|
||||||
# add wpo if msvc
|
# add wpo if msvc
|
||||||
if cxx == 'msvc'
|
if cxx == 'msvc'
|
||||||
cxxflags += [
|
cxxflags += [
|
||||||
'/GL'
|
'/GL', '/DEBUG'
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
<ProgramDataBaseFileName>.\release\inf\</ProgramDataBaseFileName>
|
<ProgramDataBaseFileName>.\release\inf\</ProgramDataBaseFileName>
|
||||||
<WarningLevel>Level4</WarningLevel>
|
<WarningLevel>Level4</WarningLevel>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
<CompileAs>CompileAsCpp</CompileAs>
|
<CompileAs>CompileAsCpp</CompileAs>
|
||||||
<InterproceduralOptimization>MultiFile</InterproceduralOptimization>
|
<InterproceduralOptimization>MultiFile</InterproceduralOptimization>
|
||||||
<FlushDenormalResultsToZero>true</FlushDenormalResultsToZero>
|
<FlushDenormalResultsToZero>true</FlushDenormalResultsToZero>
|
||||||
|
|
@ -285,7 +285,7 @@
|
||||||
<OutputFile>.\release\yapb.dll</OutputFile>
|
<OutputFile>.\release\yapb.dll</OutputFile>
|
||||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||||
<DelayLoadDLLs>user32.dll;ws2_32.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
<DelayLoadDLLs>user32.dll;ws2_32.dll;%(DelayLoadDLLs)</DelayLoadDLLs>
|
||||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<GenerateMapFile>false</GenerateMapFile>
|
<GenerateMapFile>false</GenerateMapFile>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue