Merge branch 'master' into 267-toolchain-for-ippl-opal-with-gcc-12-3-0
This commit is contained in:
17
Programming/Julia/build
Executable file
17
Programming/Julia/build
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url "https://julialang-s3.julialang.org/bin/linux/x64/${V_MAJOR}.${V_MINOR}/julia-${V_PKG}-linux-x86_64.tar.gz"
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::install_docfiles 'LICENSE.md'
|
||||
|
||||
pbuild::compile_in_sourcetree
|
||||
|
||||
pbuild::compile() {
|
||||
:
|
||||
}
|
||||
|
||||
pbuild::install() {
|
||||
rsync -av . "${PREFIX}"
|
||||
}
|
||||
|
||||
1
Programming/Julia/files/variants.rhel7
Normal file
1
Programming/Julia/files/variants.rhel7
Normal file
@@ -0,0 +1 @@
|
||||
Julia/1.9.2 stable
|
||||
12
Programming/Julia/modulefile
Normal file
12
Programming/Julia/modulefile
Normal file
@@ -0,0 +1,12 @@
|
||||
#%Module1.0
|
||||
|
||||
module-whatis "Julia"
|
||||
module-url "https://julialang.org/"
|
||||
module-license "https://github.com/JuliaLang/julia/blob/master/LICENSE.md"
|
||||
module-maintainer "Marc Caubet Serrabou <marc.caubet@psi.ch>"
|
||||
module-help "
|
||||
Julia is a high-level, high-performance dynamic language for technical
|
||||
computing.
|
||||
"
|
||||
|
||||
module-addgroup Programming
|
||||
@@ -18,3 +18,6 @@ dependencies:
|
||||
- tox-conda
|
||||
- pytest
|
||||
- bpython
|
||||
- jinja2 # for relion templates
|
||||
- pip:
|
||||
- j2cli[yaml]
|
||||
|
||||
@@ -1,24 +1,29 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url \
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-${V_PKG}/llvm-project-${V_PKG}.src.tar.xz"
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
|
||||
pbuild::set_download_url \
|
||||
"https://github.com/llvm/llvm-project/releases/download/llvmorg-${V_PKG}/llvm-project-${V_PKG}.src.tar.xz"
|
||||
|
||||
#pbuild::install_docfiles 'AUTHORS' 'LICENSE' 'NEWS' 'README'
|
||||
|
||||
|
||||
pbuild::configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libunwind;lldb;lld;openmp" \
|
||||
-DGCC_INSTALL_PREFIX="${GCC_DIR}" \
|
||||
-G "Unix Makefiles" \
|
||||
"${SRC_DIR}/llvm" \
|
||||
|| exit 1
|
||||
# To expose the correct GCC libstd++ to build system, we need to both set
|
||||
# the correct CC/CXX *and* force the build linker to use the pmodule GCC
|
||||
# library.
|
||||
GCC_CXXLIBDIR="${GCC_DIR}/lib64"
|
||||
CC="${GCC_DIR}/bin/gcc"
|
||||
CXX="${GCC_DIR}/bin/g++"
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_LINK_FLAGS="-Wl,-R,${GCC_CXXLIBDIR} -L${GCC_CXXLIBDIR}" \
|
||||
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lldb;lld;openmp" \
|
||||
-DLLVM_ENABLE_RUNTIMES="libunwind" \
|
||||
"${CONFIGURE_ARGS[@]}" \
|
||||
-G "Unix Makefiles" \
|
||||
"${SRC_DIR}/llvm" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
# :FIXME: copy libstdc++ and libgcc from used gcc to $PREFIX/lib64
|
||||
:
|
||||
}
|
||||
# vim: ts=4 sw=4 et
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
clang/12.0.0_rhel7 stable b:cmake/3.15.5 b:gcc/9.3.0 b:Python/3.8.4 b:xz/5.2.4 b:binutils/2.29
|
||||
clang/15.0.6_rhel7 unstable b:cmake/3.23.2 b:gcc/12.1.0 b:Python/3.9.10 b:xz/5.2.4 b:binutils/2.37
|
||||
|
||||
Reference in New Issue
Block a user