Skip to content

Commit

Permalink
fix(c_cxx): replace $^ with $< for object recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
bgenia committed Mar 10, 2023
1 parent 0045c0b commit 6a7a06f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/c_cxx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ define $(call $.new_macro,__c_cxx.build_target/static_library,$(call $.set,no_fi
endef

define $(call $.new_macro,__c_cxx.build_objects/c,$(call $.set,no_final_newline))
> $$(CC) -c $$(CFLAGS) $$(CPPFLAGS) $$^ -o $$@
> $$(CC) -c $$(CFLAGS) $$(CPPFLAGS) $$< -o $$@
endef

define $(call $.new_macro,__c_cxx.build_objects/cxx,$(call $.set,no_final_newline))
> $$(CXX) -c $$(CXXFLAGS) $$(CPPFLAGS) $$^ -o $$@
> $$(CXX) -c $$(CXXFLAGS) $$(CPPFLAGS) $$< -o $$@
endef

define $(call $.new_template,build,target)
Expand Down

0 comments on commit 6a7a06f

Please sign in to comment.