git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289663
91177308-0d34-0410-b5e6-
96231b3b80d8
import subprocess
def have_ld_plugin_support():
- if not config.llvm_tool_llvm_shlib_build:
+ if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')):
return False
ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE, env={'LANG': 'C'})
config.python_executable = "@PYTHON_EXECUTABLE@"
config.gold_executable = "@GOLD_EXECUTABLE@"
config.ld64_executable = "@LD64_EXECUTABLE@"
-config.llvm_tool_llvm_shlib_build = "@LLVM_TOOL_LLVM_SHLIB_BUILD@"
config.llvm_tool_lto_build = "@LLVM_TOOL_LTO_BUILD@"
config.ocamlfind_executable = "@OCAMLFIND@"
config.have_ocamlopt = "@HAVE_OCAMLOPT@"