aboutsummaryrefslogtreecommitdiff
path: root/Makefile.ide
diff options
context:
space:
mode:
authorMichael Soegtrop2020-07-04 18:42:50 +0200
committerMichael Soegtrop2020-07-04 18:42:50 +0200
commit5facdb7fd256a5b3efe8c805f2666d613f302bd3 (patch)
tree8f8b8eab216bae3a5e85422c0d512c171c865b67 /Makefile.ide
parentcf388fdb679adb88a7e8b3122f65377552d2fb94 (diff)
Windows build: use architecture dependent version of windres
Diffstat (limited to 'Makefile.ide')
-rw-r--r--Makefile.ide6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.ide b/Makefile.ide
index 640ee7b188..789acee5ec 100644
--- a/Makefile.ide
+++ b/Makefile.ide
@@ -296,10 +296,12 @@ $(COQIDEAPP):$(COQIDEAPP)/Contents/Resources
# CoqIde for Windows special targets
###########################################################################
+# This is either x86_64-w64-mingw32 or i686-w64-mingw32
+TARGET_ARCH=$(shell $CC -dumpmachine)
+
%.o: %.rc
$(SHOW)'WINDRES $<'
- $(HIDE)i686-w64-mingw32-windres -i $< -o $@
-
+ $(HIDE)$(TARGET_ARCH)-windres -i $< -o $@
# For emacs:
# Local Variables: