{ "name": "LlvmAT39", "description": "Next-gen compiler infrastructure", "url": "https://releases.llvm.org/3.9.1/llvm-3.9.1.src.tar.xz", "mirror": null, "homepage": "https://llvm.org/", "depends": [ { "depend": "cmake", "build-depend": true }, { "depend": "libffi", "build-depend": false } ], "resource": [ { "name": "clang", "url": "https://releases.llvm.org/3.9.1/cfe-3.9.1.src.tar.xz" }, { "name": "clang-extra-tools", "url": "https://releases.llvm.org/3.9.1/clang-tools-extra-3.9.1.src.tar.xz" }, { "name": "compiler-rt", "url": "https://releases.llvm.org/3.9.1/compiler-rt-3.9.1.src.tar.xz" }, { "name": "libcxx", "url": "https://releases.llvm.org/3.9.1/libcxx-3.9.1.src.tar.xz" }, { "name": "libunwind", "url": "https://releases.llvm.org/3.9.1/libunwind-3.9.1.src.tar.xz" }, { "name": "lld", "url": "https://releases.llvm.org/3.9.1/lld-3.9.1.src.tar.xz" }, { "name": "lldb", "url": "https://releases.llvm.org/3.9.1/lldb-3.9.1.src.tar.xz" }, { "name": "openmp", "url": "https://releases.llvm.org/3.9.1/openmp-3.9.1.src.tar.xz" }, { "name": "polly", "url": "https://releases.llvm.org/3.9.1/polly-3.9.1.src.tar.xz" } ], "conflicts": [], "patches": [], "install": [ "ENV.libcxx if ENV.compiler == :clang", "(buildpath/\"tools/clang\").install resource(\"clang\")", "(buildpath/\"tools/clang/tools/extra\").install resource(\"clang-extra-tools\")", "(buildpath/\"projects/openmp\").install resource(\"openmp\")", "(buildpath/\"projects/libcxx\").install resource(\"libcxx\")", "(buildpath/\"projects/libunwind\").install resource(\"libunwind\")", "(buildpath/\"tools/lld\").install resource(\"lld\")", "(buildpath/\"tools/polly\").install resource(\"polly\")", "(buildpath/\"projects/compiler-rt\").install resource(\"compiler-rt\")", "ENV.permit_arch_flags", "args = %W[", "-DLIBOMP_ARCH=x86_64", "-DLINK_POLLY_INTO_TOOLS=ON", "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON", "-DLLVM_BUILD_LLVM_DYLIB=ON", "-DLLVM_ENABLE_EH=ON", "-DLLVM_ENABLE_FFI=ON", "-DLLVM_ENABLE_LIBCXX=ON", "-DLLVM_ENABLE_RTTI=ON", "-DLLVM_INCLUDE_DOCS=OFF", "-DLLVM_INSTALL_UTILS=ON", "-DLLVM_OPTIMIZED_TABLEGEN=ON", "-DLLVM_TARGETS_TO_BUILD=all", "-DWITH_POLLY=ON", "-DFFI_INCLUDE_DIR=#{Formula[\"libffi\"].opt_lib}/libffi-#{Formula[\"libffi\"].version}/include", "-DFFI_LIBRARY_DIR=#{Formula[\"libffi\"].opt_lib}", "-DLLVM_CREATE_XCODE_TOOLCHAIN=ON", "]", "mkdir \"build\" do", "system \"cmake\", \"-G\", \"Unix Makefiles\", \"..\", *(std_cmake_args + args)", "system \"make\"", "system \"make\", \"install\"", "system \"make\", \"install-xcode-toolchain\"" ], "version": "3.9.1", "file": "llvm@3.9.rb" }