forked from OSchip/llvm-project
Fixes file extension for loadable modules on OS X.
Patch by Wesley Peck! llvm-svn: 122395
This commit is contained in:
parent
ea4f7c7761
commit
9f2b3842a3
|
@ -36,7 +36,13 @@ ${name} ignored.")
|
|||
add_custom_target(${name})
|
||||
else()
|
||||
llvm_process_sources( ALL_FILES ${ARGN} )
|
||||
add_library( ${name} MODULE ${ALL_FILES} )
|
||||
if (MODULE)
|
||||
set(libkind MODULE)
|
||||
else()
|
||||
set(libkind SHARED)
|
||||
endif()
|
||||
|
||||
add_library( ${name} ${libkind} ${ALL_FILES} )
|
||||
set_target_properties( ${name} PROPERTIES PREFIX "" )
|
||||
|
||||
if (APPLE)
|
||||
|
|
Loading…
Reference in New Issue