mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Change these sed lines to behave correctly when the input string
contains commas. This fixes PR3727. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac57b128c4
commit
4832f8893b
@ -57,11 +57,16 @@ llvm-config.in: $(ConfigInIn) $(ConfigStatusScript)
|
|||||||
# Build our final script.
|
# Build our final script.
|
||||||
$(ToolDir)/llvm-config: llvm-config.in $(FinalLibDeps)
|
$(ToolDir)/llvm-config: llvm-config.in $(FinalLibDeps)
|
||||||
$(Echo) "Building llvm-config script."
|
$(Echo) "Building llvm-config script."
|
||||||
$(Verb) $(ECHO) 's,@LLVM_CPPFLAGS@,$(SUB_CPPFLAGS),' > temp.sed
|
$(Verb) $(ECHO) 's/@LLVM_CPPFLAGS@/$(subst /,\/,$(SUB_CPPFLAGS))/' \
|
||||||
$(Verb) $(ECHO) 's,@LLVM_CFLAGS@,$(SUB_CFLAGS),' >> temp.sed
|
> temp.sed
|
||||||
$(Verb) $(ECHO) 's,@LLVM_CXXFLAGS@,$(SUB_CXXFLAGS),' >> temp.sed
|
$(Verb) $(ECHO) 's/@LLVM_CFLAGS@/$(subst /,\/,$(SUB_CFLAGS))/' \
|
||||||
$(Verb) $(ECHO) 's,@LLVM_LDFLAGS@,$(SUB_LDFLAGS),' >> temp.sed
|
>> temp.sed
|
||||||
$(Verb) $(ECHO) 's,@LLVM_BUILDMODE@,$(BuildMode),' >> temp.sed
|
$(Verb) $(ECHO) 's/@LLVM_CXXFLAGS@/$(subst /,\/,$(SUB_CXXFLAGS))/' \
|
||||||
|
>> temp.sed
|
||||||
|
$(Verb) $(ECHO) 's/@LLVM_LDFLAGS@/$(subst /,\/,$(SUB_LDFLAGS))/' \
|
||||||
|
>> temp.sed
|
||||||
|
$(Verb) $(ECHO) 's/@LLVM_BUILDMODE@/$(subst /,\/,$(BuildMode))/' \
|
||||||
|
>> temp.sed
|
||||||
$(Verb) $(SED) -f temp.sed < $< > $@
|
$(Verb) $(SED) -f temp.sed < $< > $@
|
||||||
$(Verb) $(RM) temp.sed
|
$(Verb) $(RM) temp.sed
|
||||||
$(Verb) cat $(FinalLibDeps) >> $@
|
$(Verb) cat $(FinalLibDeps) >> $@
|
||||||
|
Loading…
Reference in New Issue
Block a user