Modified the Makefile to enable stripping of extra information during the linking stage, further reducing the size of the Release build.
This commit is contained in:
parent
20d1c5576f
commit
f1e29aaba9
2
Makefile
2
Makefile
@ -194,7 +194,7 @@ $(BUILD_DIR)/$(SUB_DIR_DEBUG): | $(BUILD_DIR)
|
|||||||
# Release 最终可执行文件编译任务
|
# Release 最终可执行文件编译任务
|
||||||
$(BUILD_DIR)/$(SUB_DIR_RELEASE)/$(TARGET_FILE_NAME).exe: $(RELEASE_OBJECTS)
|
$(BUILD_DIR)/$(SUB_DIR_RELEASE)/$(TARGET_FILE_NAME).exe: $(RELEASE_OBJECTS)
|
||||||
@echo ====== [Release] All File Compiled. Now Linking... ======
|
@echo ====== [Release] All File Compiled. Now Linking... ======
|
||||||
$(CXX_COMPLIER) $(RELEASE_OBJECTS) -static -o $@ $(LIB_LINK) $(LDFLAGS)
|
$(CXX_COMPLIER) $(RELEASE_OBJECTS) -static -s -o $@ $(LIB_LINK) $(LDFLAGS)
|
||||||
@echo ====== [Release] Program Link Finished ======
|
@echo ====== [Release] Program Link Finished ======
|
||||||
|
|
||||||
# Debug 最终可执行文件编译任务
|
# Debug 最终可执行文件编译任务
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user