Skip to content

Commit

Permalink
Fix ordering of compiler arguments with GCC 13
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Scheel <alexander.scheel@keyfactor.com>
  • Loading branch information
cipherboy committed Mar 13, 2024
1 parent 289ff90 commit cd520eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ build/.objects/model_t.o: src/model_t.cpp src/cmsh.h
${CXX} ${WARNINGFLAGS} ${COMPILEFLAGS} ${CMSFLAGS} -c src/model_t.cpp -o build/.objects/model_t.o

build/cmsh/_native${PYEXT}: bindings/pycmsh.cpp build/cmsh/libcmsh.so
${CXX} ${COMPILEFLAGS} ${DISABLEDWARNINGS} ${WARNINGFLAGS} ${CMSFLAGS} ${CMSHFLAGS} ${PYTHONFLAGS} -shared bindings/pycmsh.cpp -o build/cmsh/_native${PYEXT}
${CXX} bindings/pycmsh.cpp ${COMPILEFLAGS} ${DISABLEDWARNINGS} ${WARNINGFLAGS} ${CMSHFLAGS} ${CMSFLAGS} ${PYTHONFLAGS} -shared -o build/cmsh/_native${PYEXT}

module: native python/*.py tools/setup.py
cp python/*.py build/cmsh/
Expand All @@ -87,10 +87,10 @@ check: check-native
check-native: cmsh build/basic_api build/sudoku

build/basic_api: tests/native/basic_api.cpp
${CXX} ${WARNINGFLAGS} ${COMPILEFLAGS} ${CMSHFLAGS} tests/native/basic_api.cpp -o build/basic_api
${CXX} tests/native/basic_api.cpp ${WARNINGFLAGS} ${COMPILEFLAGS} ${CMSHFLAGS} ${CMSFLAGS} -o build/basic_api

build/sudoku: tests/native/sudoku.cpp
${CXX} ${WARNINGFLAGS} ${COMPILEFLAGS} ${CMSHFLAGS} tests/native/sudoku.cpp -o build/sudoku
${CXX} tests/native/sudoku.cpp ${WARNINGFLAGS} ${COMPILEFLAGS} ${CMSHFLAGS} ${CMSFLAGS} -o build/sudoku

# Clean targets
distclean: clean
Expand Down

0 comments on commit cd520eb

Please sign in to comment.