Skip to content

Commit

Permalink
Add "-std=c++98" to CXXFLAGS in Makefile
Browse files Browse the repository at this point in the history
This flag disallows modern C++ features, so that we get the same behaviour compiling locally with a recent compiler as we do on CI with old compilers.
  • Loading branch information
glebm committed Jun 16, 2019
1 parent 1e41b05 commit 475044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(CXX) ?= g++

all: sass2scss

CXXFLAGS = -DSASS2SCSS_VERSION="\"$(SASS2SCSS_VERSION)\""
CXXFLAGS = -std=c++98 -DSASS2SCSS_VERSION="\"$(SASS2SCSS_VERSION)\""

sass2scss.o: sass2scss.cpp
$(CXX) $(CXXFLAGS) -Wall -c sass2scss.cpp
Expand Down

0 comments on commit 475044d

Please sign in to comment.