Skip to content

Commit

Permalink
Tup: Add clang.config
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Jun 28, 2017
1 parent f3623bd commit d59ed05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Tupfile
@@ -1,8 +1,16 @@
VERSION = 1.2.0

CC = cc
ifdef CC
CC = @(CC)
else
CC = cc
endif
CFLAGS = @(CFLAGS) -fdiagnostics-color
CXX = c++
ifdef CXX
CXX = @(CXX)
else
CXX = c++
endif
CXXFLAGS = @(CXXFLAGS) -std=c++11 -fdiagnostics-color

: foreach src/*.cpp src/linux/*.cpp src/jngl/*.cpp src/sdl/*.cpp |> $(CXX) $(CXXFLAGS) `pkg-config --cflags sdl2 freetype2` -c %f -o %o |> %f.o {objs}
Expand Down
4 changes: 4 additions & 0 deletions configs/clang.config
@@ -0,0 +1,4 @@
CONFIG_CC=clang
CONFIG_CXX=clang++
CONFIG_CFLAGS=-Wall -Wextra
CONFIG_CXXFLAGS=-Wall -Wextra

0 comments on commit d59ed05

Please sign in to comment.