mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Capture the build mode (e.g. Debug/Release) in the llvm-config script.
llvm-svn: 28665
This commit is contained in:
parent
6cca762d5f
commit
f6262f0c01
@ -53,6 +53,7 @@ $(ToolDir)/llvm-config: llvm-config.in $(FinalLibDeps)
|
||||
$(Echo) "Building llvm-config script."
|
||||
$(Verb) $(ECHO) 's,@LLVM_CXXFLAGS@,$(SUB_CXXFLAGS),' > temp.sed
|
||||
$(Verb) $(ECHO) 's,@LLVM_LDFLAGS@,$(SUB_LDFLAGS),' >> temp.sed
|
||||
$(Verb) $(ECHO) 's,@LLVM_BUILDMODE@,$(BuildMode),' >> temp.sed
|
||||
$(Verb) $(SED) -f temp.sed < $< > $@
|
||||
$(Verb) $(RM) temp.sed
|
||||
$(Verb) cat $(FinalLibDeps) >> $@
|
||||
|
@ -47,6 +47,7 @@ my @TARGETS_BUILT = map { lc($_) } qw{@TARGETS_TO_BUILD@};
|
||||
#---- begin Makefile values ----
|
||||
my $CXXFLAGS = q{@LLVM_CXXFLAGS@};
|
||||
my $LDFLAGS = q{@LLVM_LDFLAGS@};
|
||||
my $LLVM_BUILDMODE = q{@LLVM_BUILDMODE@};
|
||||
#---- end Makefile values ----
|
||||
|
||||
# Convert the current executable name into its directory (e.g. ".").
|
||||
|
Loading…
Reference in New Issue
Block a user