File tree Expand file tree Collapse file tree 4 files changed +27
-21
lines changed Expand file tree Collapse file tree 4 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 31
31
os : windows-latest
32
32
msys : MINGW64
33
33
slug : mingw-w64-x86_64
34
- root : " /mingw64"
35
34
cc : gcc
36
35
cxx : g++
37
36
subtarget : mame
40
39
os : windows-latest
41
40
msys : MINGW64
42
41
slug : mingw-w64-x86_64
43
- root : " /mingw64"
44
42
cc : clang
45
43
cxx : clang++
46
44
subtarget : tiny
50
48
msys : CLANGARM64
51
49
slug : mingw-w64-clang-aarch64
52
50
extrapkg : mingw-w64-clang-aarch64-gcc-compat
53
- root : " /clangarm64"
54
51
cc : clang
55
52
cxx : clang++
56
53
subtarget : mame
69
66
fetch-depth : 0
70
67
- name : Build
71
68
env :
72
- MINGW64 : ${{ matrix.root }}
73
69
OVERRIDE_AR : " llvm-ar"
74
70
OVERRIDE_CC : ${{ matrix.cc }}
75
71
OVERRIDE_CXX : ${{ matrix.cxx }}
Original file line number Diff line number Diff line change @@ -150,14 +150,8 @@ with MSYS2 and the **pacman** package manager.
150
150
* To generate API documentation from source, you’ll need ``doxygen ``.
151
151
* If you plan to rebuild bgfx shaders and you want to rebuild the GLSL parser,
152
152
you’ll need ``bison ``.
153
- * For 64-bit builds, open **MSYS2 MinGW 64-bit ** from the start menu, and set
154
- up the environment variables ``MINGW64 `` to ``/mingw64 `` and ``MINGW32 `` to an
155
- empty string (e.g. using the command **export MINGW64=/mingw64 MINGW32= ** in
156
- the Bash shell).
157
- * For 32-bit builds, open **MSYS2 MinGW 32-bit ** from the start menu, and set
158
- up the environment variables ``MINGW32 `` to ``/mingw32 `` and ``MINGW64 `` to an
159
- empty string (e.g. using the command **export MINGW32=/mingw32 MINGW64= ** in
160
- the Bash shell).
153
+ * For 64-bit builds, open **MSYS2 MinGW 64-bit ** from the start menu.
154
+ * For 32-bit builds, open **MSYS2 MinGW 32-bit ** from the start menu.
161
155
162
156
For example you could use these commands to ensure you have the packages you
163
157
need to compile MAME, omitting the ones for configurations you don’t plan to
Original file line number Diff line number Diff line change @@ -234,12 +234,28 @@ $(error Unable to detect OS from uname -a: $(UNAME))
234
234
endif
235
235
endif
236
236
237
- MINGW: =
237
+ ifdef MSYSTEM
238
+ MINGW := $(MINGW_PREFIX )
239
+ ifeq ($(MSYSTEM ) ,MINGW32)
240
+ MINGW32 := $(MINGW_PREFIX)
241
+ endif
242
+ ifeq ($(MSYSTEM ) ,MINGW64)
243
+ MINGW64 := $(MINGW_PREFIX)
244
+ endif
245
+ ifeq ($(MSYSTEM ) ,CLANGARM64)
246
+ MINGW64 := $(MINGW_PREFIX)
247
+ endif
248
+ ifndef TOOLCHAIN
249
+ TOOLCHAIN := $(MINGW_PREFIX)/bin/
250
+ endif
251
+ else # MSYSTEM
252
+ MINGW :=
238
253
ifdef MINGW64
239
254
MINGW := $(MINGW64)
240
- else
255
+ else # MINGW64
241
256
MINGW := $(MINGW32)
242
- endif
257
+ endif # MINGW64
258
+ endif # MSYSTEM
243
259
244
260
# -------------------------------------------------
245
261
# specify core target: mame, ldplayer
Original file line number Diff line number Diff line change @@ -163,10 +163,10 @@ function toolchain(_buildDir, _subDir)
163
163
end
164
164
165
165
if " mingw32-gcc" == _OPTIONS [" gcc" ] then
166
- if not os.getenv (" MINGW32" ) then
167
- print (" Set MINGW32 envrionment variable." )
168
- end
169
166
if toolchainPrefix == nil or toolchainPrefix == " " then
167
+ if not os.getenv (" MINGW32" ) then
168
+ print (" Set MINGW32 envrionment variable." )
169
+ end
170
170
toolchainPrefix = " $(MINGW32)/bin/i686-w64-mingw32-"
171
171
end
172
172
premake .gcc .cc = toolchainPrefix .. " gcc"
@@ -176,10 +176,10 @@ function toolchain(_buildDir, _subDir)
176
176
end
177
177
178
178
if " mingw64-gcc" == _OPTIONS [" gcc" ] then
179
- if not os.getenv (" MINGW64" ) then
180
- print (" Set MINGW64 envrionment variable." )
181
- end
182
179
if toolchainPrefix == nil or toolchainPrefix == " " then
180
+ if not os.getenv (" MINGW64" ) then
181
+ print (" Set MINGW64 envrionment variable." )
182
+ end
183
183
toolchainPrefix = " $(MINGW64)/bin/x86_64-w64-mingw32-"
184
184
end
185
185
premake .gcc .cc = toolchainPrefix .. " gcc"
You can’t perform that action at this time.
0 commit comments