Skip to content

Commit

Permalink
Compile .cc as C++
Browse files Browse the repository at this point in the history
  • Loading branch information
Joppe committed Mar 27, 2024
1 parent d09f548 commit 3a69d05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ $/_SOURCE += $($/*.c)
$/*.h := $(shell find $/*.h \! -type l 2>/dev/null)
$/_SOURCE += $($/*.h)
$/*.cpp := $(wildcard $/*.cpp)
$/*.cpp += $(wildcard $/*.cc)
$/_SOURCE += $($/*.cpp)
$/*.hpp := $(shell find $/*.hpp \! -type l 2>/dev/null)
$/_SOURCE += $($/*.hpp)
Expand Down Expand Up @@ -586,7 +587,7 @@ ifneq (,$($/_OBJS))
# Use project specific compile flags
define META
# Compile C++
$$/build/%.cpp.s: $$/%.cpp | $$(CXX)
$$/build/%.s: $$/% | $$(CXX)
$$(CXX) $$($/_CXXFLAGS) -c $$< -o $$@

# Compile C
Expand Down

0 comments on commit 3a69d05

Please sign in to comment.