Windows: Make builds more reproducible

This commit is contained in:
spycrab 2019-10-18 16:00:15 +02:00
parent 4a613dad20
commit 50ee8b105d
2 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,9 @@ if (MSVC)
add_subdirectory(PCH)
add_definitions(/I${PCH_DIRECTORY})
add_definitions(/Yu${PCH_PATH})
# Don't include timestamps in binaries
add_link_options(/Brepro)
endif()
# These aren't actually needed for C11/C++11

View File

@ -162,7 +162,7 @@
<!--See Common/CompatPatches.cpp-->
<ForceSymbolReferences>enableCompatPatches</ForceSymbolReferences>
<!--TODO fix up ffmpeg garbage-->
<AdditionalOptions>/NODEFAULTLIB:libcmt %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/NODEFAULTLIB:libcmt /Brepro %(AdditionalOptions)</AdditionalOptions>
</Link>
<Lib>
<TreatLibWarningAsErrors>true</TreatLibWarningAsErrors>