forked from OSchip/llvm-project
Compile shared libraries with dSYM files when requested on darwin. Prior to this, we never had dSYM files for shared libraries unless it was a dylib only Makefile.
llvm-svn: 164322
This commit is contained in:
parent
48e0c2c82d
commit
0c9773c6d5
|
@ -230,6 +230,11 @@ endif
|
|||
$(DYLIB_FILENAME) : $(DYLIB_OBJECTS)
|
||||
ifeq "$(OS)" "Darwin"
|
||||
$(LD) $(LDFLAGS) $(DYLIB_OBJECTS) -install_name "@executable_path/$(DYLIB_FILENAME)" -dynamiclib -o "$(DYLIB_FILENAME)"
|
||||
ifneq "$(MAKE_DSYM)" "NO"
|
||||
ifneq "$(DS)" ""
|
||||
$(DS) $(DSFLAGS) "$(DYLIB_FILENAME)"
|
||||
endif
|
||||
endif
|
||||
else
|
||||
$(LD) $(LDFLAGS) $(DYLIB_OBJECTS) -shared -o "$(DYLIB_FILENAME)"
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue