diff --git a/.gitignore b/.gitignore index 23304f9..d4e7b84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,148 +1,7 @@ -/cfe-*.src.tar.gz -/compiler-rt-*.src.tar.gz -/lldb-*.src.tar.gz -/llvm-*.src.tar.gz -/clang-3.4.src.tar.gz -/cfe-3.5.0.src.tar.xz -/compiler-rt-3.5.0.src.tar.xz -/lldb-3.5.0.src.tar.xz -/llvm-3.5.0.src.tar.xz -/cfe-3.6.0.src.tar.xz -/compiler-rt-3.6.0.src.tar.xz -/lldb-3.6.0.src.tar.xz -/llvm-3.6.0.src.tar.xz -/llvm-3.6.1.src.tar.xz -/compiler-rt-3.6.1.src.tar.xz -/cfe-3.6.1.src.tar.xz -/lldb-3.6.1.src.tar.xz -/cfe-3.6.2.src.tar.xz -/compiler-rt-3.6.2.src.tar.xz -/lldb-3.6.2.src.tar.xz -/llvm-3.6.2.src.tar.xz -/llvm-3.7.0.src.tar.xz -/cfe-3.7.0.src.tar.xz -/compiler-rt-3.7.0.src.tar.xz -/lldb-3.7.0.src.tar.xz -/llvm-3.7.1.src.tar.xz -/llvm-3.8.0rc2.src.tar.xz -/llvm-3.8.0rc3.src.tar.xz -/llvm-3.8.0.src.tar.xz -/llvm-3.8.1.src.tar.xz -/llvm-3.9.0.src.tar.xz -/llvm-3.9.1.src.tar.xz -/llvm-4.0.0.src.tar.xz -/llvm-4.0.1.src.tar.xz -/llvm-5.0.0.src.tar.xz -/llvm-5.0.1.src.tar.xz -/llvm-6.0.0rc1.src.tar.xz -/llvm-6.0.0rc2.src.tar.xz -/llvm-6.0.0.src.tar.xz -/llvm-6.0.1rc1.src.tar.xz -/llvm-6.0.1rc2.src.tar.xz -/llvm-6.0.1.src.tar.xz -/llvm-7.0.0rc1.src.tar.xz -/llvm-7.0.0rc2.src.tar.xz -/llvm-7.0.0rc3.src.tar.xz -/llvm-7.0.0.src.tar.xz -/llvm-7.0.1.src.tar.xz -/llvm-8.0.0rc1.src.tar.xz -/llvm-8.0.0rc2.src.tar.xz -/llvm-8.0.0rc3.src.tar.xz -/llvm-8.0.0rc4.src.tar.xz -/llvm-8.0.0.src.tar.xz -/llvm-9.0.0rc2.src.tar.xz -/llvm-9.0.0rc3.src.tar.xz -/llvm-9.0.0.src.tar.xz -/llvm-9.0.1.src.tar.xz -/llvm-10.0.0rc1.src.tar.xz -/llvm-10.0.0rc1.src.tar.xz.sig -/llvm-10.0.0rc2.src.tar.xz -/llvm-10.0.0rc2.src.tar.xz.sig -/llvm-10.0.0rc3.src.tar.xz -/llvm-10.0.0rc3.src.tar.xz.sig -/llvm-10.0.0rc4.src.tar.xz -/llvm-10.0.0rc4.src.tar.xz.sig -/llvm-10.0.0rc5.src.tar.xz -/llvm-10.0.0rc5.src.tar.xz.sig -/llvm-10.0.0rc6.src.tar.xz -/llvm-10.0.0rc6.src.tar.xz.sig -/llvm-10.0.0.src.tar.xz -/llvm-10.0.0.src.tar.xz.sig -/llvm-11.0.0rc1.src.tar.xz -/llvm-11.0.0rc1.src.tar.xz.sig -/llvm-11.0.0rc2.src.tar.xz -/llvm-11.0.0rc2.src.tar.xz.sig -/llvm-11.0.0rc3.src.tar.xz -/llvm-11.0.0rc3.src.tar.xz.sig -/llvm-11.0.0rc5.src.tar.xz -/llvm-11.0.0rc5.src.tar.xz.sig -/llvm-11.0.0rc6.src.tar.xz -/llvm-11.0.0rc6.src.tar.xz.sig -/llvm-11.0.0.src.tar.xz -/llvm-11.0.0.src.tar.xz.sig -/llvm-11.0.1rc1.src.tar.xz -/llvm-11.0.1rc1.src.tar.xz.sig -/llvm-11.0.1rc2.src.tar.xz.sig -/llvm-11.0.1rc2.src.tar.xz -/llvm-11.0.1.src.tar.xz -/llvm-11.0.1.src.tar.xz.sig -/llvm-11.1.0rc1.src.tar.xz.sig -/llvm-11.1.0rc1.src.tar.xz -/llvm-11.1.0rc2.src.tar.xz -/llvm-11.1.0rc2.src.tar.xz.sig -/llvm-12.0.0rc1.src.tar.xz -/llvm-12.0.0rc1.src.tar.xz.sig -/llvm-12.0.0rc2.src.tar.xz -/llvm-12.0.0rc2.src.tar.xz.sig -/llvm-12.0.0rc3.src.tar.xz -/llvm-12.0.0rc3.src.tar.xz.sig -/llvm-12.0.0rc4.src.tar.xz -/llvm-12.0.0rc4.src.tar.xz.sig -/llvm-12.0.0rc5.src.tar.xz -/llvm-12.0.0rc5.src.tar.xz.sig -/llvm-12.0.0.src.tar.xz -/llvm-12.0.0.src.tar.xz.sig -/llvm-12.0.1rc1.src.tar.xz -/llvm-12.0.1rc1.src.tar.xz.sig -/llvm-12.0.1rc3.src.tar.xz -/llvm-12.0.1rc3.src.tar.xz.sig -/llvm-12.0.1.src.tar.xz -/llvm-12.0.1.src.tar.xz.sig -/llvm-13.0.0rc1.src.tar.xz -/llvm-13.0.0rc1.src.tar.xz.sig -/llvm-13.0.0rc3.src.tar.xz -/llvm-13.0.0rc3.src.tar.xz.sig -/llvm-13.0.0rc4.src.tar.xz -/llvm-13.0.0rc4.src.tar.xz.sig -/llvm-13.0.0.src.tar.xz -/llvm-13.0.0.src.tar.xz.sig -/llvm-13.0.1rc1.src.tar.xz -/llvm-13.0.1rc1.src.tar.xz.sig -/llvm-13.0.1rc2.src.tar.xz -/llvm-13.0.1rc2.src.tar.xz.sig -/llvm-13.0.1rc3.src.tar.xz -/llvm-13.0.1rc3.src.tar.xz.sig -/llvm-13.0.1.src.tar.xz -/llvm-13.0.1.src.tar.xz.sig -/llvm-14.0.0.src.tar.xz -/llvm-14.0.0.src.tar.xz.sig -/llvm-14.0.3.src.tar.xz -/llvm-14.0.3.src.tar.xz.sig -/llvm-14.0.5.src.tar.xz -/llvm-14.0.5.src.tar.xz.sig -/llvm-15.0.0.src.tar.xz -/llvm-15.0.0.src.tar.xz.sig -/cmake-15.0.0.src.tar.xz -/cmake-15.0.0.src.tar.xz.sig -/llvm-15.0.4.src.tar.xz -/llvm-15.0.4.src.tar.xz.sig -/cmake-15.0.4.src.tar.xz -/cmake-15.0.4.src.tar.xz.sig -/llvm-15.0.6.src.tar.xz -/llvm-15.0.6.src.tar.xz.sig -/cmake-15.0.6.src.tar.xz -/cmake-15.0.6.src.tar.xz.sig -/llvm-15.0.7.src.tar.xz -/llvm-15.0.7.src.tar.xz.sig -/cmake-15.0.7.src.tar.xz -/cmake-15.0.7.src.tar.xz.sig +/*.src.rpm +/*.src.tar.xz +/*.src.tar.xz.sig +/cmake/ +/llvm-*.src/ +/results_llvm/ +/third-party/ diff --git a/lit.fedora.cfg.py b/lit.fedora.cfg.py deleted file mode 100644 index 1c918b4..0000000 --- a/lit.fedora.cfg.py +++ /dev/null @@ -1,17 +0,0 @@ - -config.llvm_tools_dir = '/usr/bin' -config.llvm_shlib_dir = '%(llvm_shlib_dir)s' % lit_config.params - -if hasattr(config, 'host_triple'): - # This means we are running lit regression tests - - # Regression tests write output to this directory, so we need to be able to specify - # a temp directory when invoking lit. e.g. lit -Dllvm_obj_root=/tmp/lit - config.llvm_obj_root = "%(llvm_obj_root)s" % lit_config.params - lit_config.load_config(config, '%(llvm_test_root)s/lit.cfg.py' % lit_config.params) -else: - # This means we are running lit unit tests - - # For unit tests, llvm_obj_root is used to find the unit test binaries. - config.llvm_obj_root = '%(llvm_unittest_bindir)s' % lit_config.params - lit_config.load_config(config, '%(llvm_test_root)s/Unit/lit.cfg.py' % lit_config.params) diff --git a/llvm-Config-config.h b/llvm-Config-config.h deleted file mode 100644 index c369b45..0000000 --- a/llvm-Config-config.h +++ /dev/null @@ -1,9 +0,0 @@ -#include - -#if __WORDSIZE == 32 -#include "config-32.h" -#elif __WORDSIZE == 64 -#include "config-64.h" -#else -#error "Unknown word size" -#endif diff --git a/llvm-Config-llvm-config.h b/llvm-Config-llvm-config.h deleted file mode 100644 index 2fa08c9..0000000 --- a/llvm-Config-llvm-config.h +++ /dev/null @@ -1,9 +0,0 @@ -#include - -#if __WORDSIZE == 32 -#include "llvm-config-32.h" -#elif __WORDSIZE == 64 -#include "llvm-config-64.h" -#else -#error "Unknown word size" -#endif diff --git a/llvm.spec b/llvm.spec index bcb964c..7034247 100644 --- a/llvm.spec +++ b/llvm.spec @@ -80,7 +80,7 @@ # we need to hard-code the correct triple here. %global llvm_triple armv7l-redhat-linux-gnueabihf %else -%global llvm_triple %{_host} +%global llvm_triple %{_target_platform} %endif # https://fedoraproject.org/wiki/Changes/PythonSafePath#Opting_out diff --git a/run-lit-tests b/run-lit-tests deleted file mode 100755 index 314f2be..0000000 --- a/run-lit-tests +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -usage() { - echo "usage: `basename $0` [OPTIONS]" - echo " --threads NUM The number of threads to use for running tests." - echo " --multilib-arch ARCH Use this option to test 32-bit libs/binaries on" - echo " 64-bit hosts." -} - -threads_arg='' - -while [ $# -gt 0 ]; do - case $1 in - --threads) - shift - threads_arg="--threads $1" - ;; - --multilib-arch) - shift - ARCH=$1 - ;; - * ) - echo "unknown option: $1" - echo "" - usage - exit 1 - ;; - esac - shift -done - -set -xe - -if [ -z "$ARCH" ]; then - ARCH=`rpm --eval '%_arch'` -fi - -case $ARCH in - arm) - ;& - i686) - LIB_DIR="/usr/lib/" - ;; - *) - LIB_DIR="/usr/lib64/" - ;; -esac - -cd $(mktemp -d) -ln -s /usr/include include -ln -s /usr/share/llvm/src/docs docs -tar -xzf /usr/share/llvm/src/test.tar.gz -ln -s /usr/share/llvm/src/$ARCH.site.cfg.py test/lit.site.cfg.py -ln -s /usr/share/llvm/src/$ARCH.Unit.site.cfg.py test/Unit/lit.site.cfg.py -lit -v -s $threads_arg test \ - -Dllvm_obj_root=`pwd` \ - -Dllvm_test_root=`pwd`/test \ - -Dllvm_unittest_bindir=$LIB_DIR/llvm \ - -Dllvm_shlib_dir=$LIB_DIR