Skip to content

Commit 151973c

Browse files
rimruldscho
authored andcommitted
git.rc: include winuser.h
winuser.h contains the definition of RT_MANIFEST that our LLVM based toolchain needs to understand that we want to embed compat/win32/git.manifest as an application manifest. It currently just embeds it as additional data that Windows doesn't understand. This also helps our GCC based toolchain understand that we only want one copy embedded. It currently embeds one working assembly manifest and one nearly identical, but useless copy as additional data. This also teaches our Visual Studio based buildsystems to pick up the manifest file from git.rc. This means we don't have to explicitly specify it in contrib/buildsystems/Generators/Vcxproj.pm anymore. Slightly counter-intuitively this also means we have to explicitly tell Cmake not to embed a default manifest. This fixes git-for-windows#4707 Signed-off-by: Matthias Aßhauer <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 4f8ede9 commit 151973c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contrib/buildsystems/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
208208
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
209209
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
210210
add_compile_options(/MP /std:c11)
211+
add_link_options(/MANIFEST:NO)
211212
endif()
212213

213214
#default behaviour

git.rc.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include<winuser.h>
12
1 VERSIONINFO
23
FILEVERSION @GIT_MAJOR_VERSION@,@GIT_MINOR_VERSION@,@GIT_MICRO_VERSION@,@GIT_PATCH_LEVEL@
34
PRODUCTVERSION @GIT_MAJOR_VERSION@,@GIT_MINOR_VERSION@,@GIT_MICRO_VERSION@,@GIT_PATCH_LEVEL@

0 commit comments

Comments
 (0)