mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
TEST: Allow building the test runner with MinGW
It needs the same workaround as our dev tools (see bug #1800764)
This commit is contained in:
parent
507b9a75e7
commit
24579ceba9
11
test/cxxtest_mingw.h
Normal file
11
test/cxxtest_mingw.h
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
#ifndef CXXTEST_MINGW
|
||||
#define CXXTEST_MINGW
|
||||
|
||||
// HACK to allow building with the SDL backend on MinGW
|
||||
// see bug #1800764 "TOOLS: MinGW tools building broken"
|
||||
#ifdef main
|
||||
#undef main
|
||||
#endif // main
|
||||
|
||||
#endif // CXXTEST_MINGW
|
@ -9,7 +9,7 @@ TESTS := $(srcdir)/test/common/*.h $(srcdir)/test/audio/*.h
|
||||
TEST_LIBS := audio/libaudio.a common/libcommon.a
|
||||
|
||||
#
|
||||
TEST_FLAGS := --runner=StdioPrinter --no-std --no-eh
|
||||
TEST_FLAGS := --runner=StdioPrinter --no-std --no-eh --include=$(srcdir)/test/cxxtest_mingw.h
|
||||
TEST_CFLAGS := -I$(srcdir)/test/cxxtest
|
||||
TEST_LDFLAGS := $(LIBS)
|
||||
TEST_CXXFLAGS := $(filter-out -Wglobal-constructors,$(CXXFLAGS))
|
||||
|
Loading…
x
Reference in New Issue
Block a user