Skip to content

Commit

Permalink
Move compiler-specific flags to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dargueta committed Sep 21, 2024
1 parent ff28212 commit f911abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:
- name: Environment
run: luarocks config
- name: Install Binding
run: luarocks build
run: luarocks build USER_CXX_FLAGS='-std=c++11 -Wall -Wextra -Werror -Wpedantic -pedantic-errors'
- name: Run tests
run: luarocks test
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ ifndef USER_CXX_FLAGS
USER_CXX_FLAGS =
endif

OTHER_CXXFLAGS = -std=c++11 -DIS_LUAJIT=$(IS_LUAJIT)
WARN_FLAGS = -Wall -Wextra -Werror -Wpedantic -pedantic-errors
INCLUDE_PATH_FLAGS = $(addprefix -I,$(HEADER_DIRECTORIES))
LIB_PATH_FLAGS = $(addprefix -L,$(LIBRARY_DIRECTORIES))
REQUIRED_LIBS = unicorn pthread stdc++
Expand All @@ -123,7 +121,7 @@ ifeq ($(OS),Darwin)
endif
endif

CXX_CMD = $(CC) $(OTHER_CXXFLAGS) $(USER_CXX_FLAGS) $(WARN_FLAGS) $(INCLUDE_PATH_FLAGS)
CXX_CMD = $(CC) $(USER_CXX_FLAGS) $(INCLUDE_PATH_FLAGS)
LINK_CMD = $(LD) $(LIB_PATH_FLAGS) $(LDFLAGS)

DOCTEST_TAG = v2.4.11
Expand Down

0 comments on commit f911abd

Please sign in to comment.