Skip to content

Commit

Permalink
cmod:: use GCC instead of CC to use tmake tool chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Yilin Zhang authored and jwise committed Nov 28, 2017
1 parent 7048b11 commit ad35bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ CPPFLAGS ?= $(INC_FLAGS) -MMD -MP -fPIC -Wall -Werror -DSC_INCLUDE_DYNAMIC_PROCE
LDFLAGS ?= -shared $(addprefix -l,$($(notdir $(SYSTEMC_LIBRARIES)):lib%.so=%)) $(LD_FLAGS)

$(BUILD_DIR)/$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $@ $(LDFLAGS) -L$(BUILD_DIR)
$(GCC) $(OBJS) -o $@ $(LDFLAGS) -L$(BUILD_DIR)

default: $(BUILD_DIR)/$(TARGET) install
@echo "=============================================="
Expand All @@ -159,7 +159,7 @@ default: $(BUILD_DIR)/$(TARGET) install

$(BUILD_DIR)/%.cpp.o: %.cpp
$(MKDIR_P) $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
$(GCC) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

.PHONY: clean

Expand Down

0 comments on commit ad35bb4

Please sign in to comment.