forked from OSchip/llvm-project
Revert r122395, "Fixes file extension for loadable modules on OS X."
In trunk, every users assume add_llvm_loadable_module as "loadable module" and no one sets neither SHARED, ... nor also MODULE! Unfortunately, all loadable modules were linked as not "MODULE" but "SHARED". If this change caused any regressions, I wish guys to fix it properly. ;) llvm-svn: 200762
This commit is contained in:
parent
fafbcb6d4c
commit
a6c161abac
|
@ -217,14 +217,7 @@ ${name} ignored.")
|
|||
# Add empty "phony" target
|
||||
add_custom_target(${name})
|
||||
else()
|
||||
llvm_process_sources( ALL_FILES ${ARGN} )
|
||||
if (MODULE)
|
||||
set(libkind MODULE)
|
||||
else()
|
||||
set(libkind SHARED)
|
||||
endif()
|
||||
|
||||
add_library( ${name} ${libkind} ${ALL_FILES} )
|
||||
add_library(${name} MODULE ${ALL_FILES})
|
||||
set_output_directory(${name} ${LLVM_RUNTIME_OUTPUT_INTDIR} ${LLVM_LIBRARY_OUTPUT_INTDIR})
|
||||
set_target_properties( ${name} PROPERTIES PREFIX "" )
|
||||
llvm_update_compile_flags(${name})
|
||||
|
|
Loading…
Reference in New Issue