Skip to content

Commit 6f3622d

Browse files
authored
Merge pull request #418 from phcoder/misc
Misc fixes
2 parents ca1f6e2 + 17a997a commit 6f3622d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
TARGET_NAME := chailove
22

3+
ifeq ($(VERBOSE),)
4+
Q=@
5+
endif
6+
37
include Makefile.libretro
48

59
ifeq ($(STATIC_LINKING),1)
@@ -23,10 +27,12 @@ else
2327
endif
2428

2529
%.o: %.cpp
26-
$(CXX) -c -o $@ $< $(CXXFLAGS) -include retro_endianness.h
30+
@echo CXX $<
31+
$(Q)$(CXX) -c -o $@ $< $(CXXFLAGS) -include retro_endianness.h
2732

2833
%.o: %.c
29-
$(CC) -c -o $@ $< $(CFLAGS) -include retro_endianness.h
34+
@echo CXX $<
35+
$(Q)$(CC) -c -o $@ $< $(CFLAGS) -include retro_endianness.h
3036

3137
%.o: %.m
3238
$(CC) -c -o $@ $< $(CFLAGS) -include retro_endianness.h

Makefile.libretro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ TARGET_NAME := chailove
4242
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
4343
ifneq ($(GIT_VERSION)," unknown")
4444
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
45+
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
4546
endif
4647

4748
ifneq (,$(findstring msvc,$(platform)))

src/love/Types/FileSystem/FileData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ FileData::FileData(const std::string& filepath) : m_filepath(filepath) {
1515
// Nothing.
1616
}
1717

18-
FileData::FileData(const std::string& contents, const std::string& name) : m_contents(contents), m_filepath(name) {
18+
FileData::FileData(const std::string& contents, const std::string& name) : m_filepath(name), m_contents(contents) {
1919
// Nothing.
2020
}
2121

0 commit comments

Comments
 (0)