Skip to content


Browse files Browse the repository at this point in the history
Only apply -std=c++11 to C++ flags
CPPFLAGS are applied to both .cpp and .c files, and that breaks clang build:

error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
  • Loading branch information
AMDmi3 committed Oct 31, 2017
1 parent c611131 commit a2de831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion
Expand Up @@ -7,7 +7,7 @@ hyperrogue_SOURCES = hyper.cpp savepng.c

# Some definitions used in graph.cpp
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\"
hyperrogue_CPPFLAGS += -std=c++11
hyperrogue_CXXFLAGS = -std=c++11

# Musicdir
Expand Down

0 comments on commit a2de831

Please sign in to comment.