Previous 199869 Revisions Next

r25392 Sunday 22nd September, 2013 at 03:08:59 UTC by R. Belmont
Better Clang support, necessary for Xcode 5.0 on OS X [R. Belmont]
[src/osd/sdl]sdl.mak

trunk/src/osd/sdl/sdl.mak
r25391r25392
440440#-------------------------------------------------
441441
442442ifeq (,$(findstring clang,$(CC)))
443# TODO: needs to use $(CC)
444443TEST_GCC = $(shell gcc --version)
445444
445# is it Clang symlinked/renamed to GCC (Xcode 5.0 on OS X)?
446ifeq ($(findstring clang,$(TEST_GCC)),clang)
447   CCOMFLAGS += -Wno-cast-align -Wno-constant-logical-operand -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-self-assign-field
448endif
449
446450# Ubuntu 12.10 GCC 4.7.2 autodetect
447451ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1)
448452GCC46TST = $(shell which g++-4.6 2>/dev/null)
r25391r25392
468472ifeq ($(findstring rpi,$(TEST_GCC)),rpi)
469473   CCOMFLAGS += -Wno-cast-align
470474endif
475
476else   # compiler is specifically Clang
477   CCOMFLAGS += -Wno-cast-align -Wno-constant-logical-operand -Wno-shift-count-overflow -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare -Wno-self-assign-field
471478endif
472479
473480#-------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team