1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 12:21:20 +00:00

Merge pull request #165 from mkilgore/fix-single-quotes-compiling

Fix compiling source files with single quotes in name
This commit is contained in:
Matt Kilgore 2022-09-09 21:56:29 -04:00 committed by GitHub
commit 05bcf3939c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -386,11 +386,11 @@ clean: $(CLEAN_DEP_LIST)
$(RM) $(call FIXPATH,$(CLEAN_LIST))
$(EXE): $(EXE_OBJS) $(EXE_LIBS)
$(CXX) $(CXXFLAGS) $(EXE_OBJS) -o '$@' $(EXE_LIBS) $(CXXLIBS)
$(CXX) $(CXXFLAGS) $(EXE_OBJS) -o "$@" $(EXE_LIBS) $(CXXLIBS)
ifneq ($(filter-out osx,$(OS)),)
ifneq ($(STRIP_SYMBOLS),n)
$(OBJCOPY) --only-keep-debug '$@' '$(PATH_INTERNAL_TEMP)/$(notdir $@).sym'
$(OBJCOPY) --strip-unneeded '$@'
$(OBJCOPY) --only-keep-debug "$@" "$(PATH_INTERNAL_TEMP)/$(notdir $@).sym"
$(OBJCOPY) --strip-unneeded "$@"
endif
endif

View file

@ -12525,6 +12525,7 @@ CxxLibsExtra$ = CxxLibsExtra$ + " " + mylib$ + " " + mylibopt$
' Make and the shell don't like certain characters in the file name, so we
' escape them to get them to handle them properly
escapedExe$ = StrReplace$(path.exe$ + file$ + extension$, " ", "\ ")
escapedExe$ = StrReplace$(escapedExe$, CHR$(34), "\" + CHR$(34))
escapedExe$ = StrReplace$(escapedExe$, "$", "$$")
makeline$ = make$ + makedeps$ + " EXE=" + AddQuotes$(escapedExe$)

View file

@ -0,0 +1,4 @@
$CONSOLE:ONLY
Print "Hello, World!";
SYSTEM

View file

@ -0,0 +1 @@
Hello, World!