trunk/src/osd/sdl/sdl.mak
| r25391 | r25392 | |
| 440 | 440 | #------------------------------------------------- |
| 441 | 441 | |
| 442 | 442 | ifeq (,$(findstring clang,$(CC))) |
| 443 | | # TODO: needs to use $(CC) |
| 444 | 443 | TEST_GCC = $(shell gcc --version) |
| 445 | 444 | |
| 445 | # is it Clang symlinked/renamed to GCC (Xcode 5.0 on OS X)? |
| 446 | ifeq ($(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 |
| 448 | endif |
| 449 | |
| 446 | 450 | # Ubuntu 12.10 GCC 4.7.2 autodetect |
| 447 | 451 | ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1) |
| 448 | 452 | GCC46TST = $(shell which g++-4.6 2>/dev/null) |
| r25391 | r25392 | |
| 468 | 472 | ifeq ($(findstring rpi,$(TEST_GCC)),rpi) |
| 469 | 473 | CCOMFLAGS += -Wno-cast-align |
| 470 | 474 | endif |
| 475 | |
| 476 | else # 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 |
| 471 | 478 | endif |
| 472 | 479 | |
| 473 | 480 | #------------------------------------------------- |