Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 4d7bfa034cfaea4e8346396c6198cdd3e271d272 authored by Andrew Litteken on 23 April 2020, 16:55:47 UTC, committed by GitHub on 23 April 2020, 16:55:47 UTC
Version 5 Upgrade! (#40)
* llvm 8 update and fixes, conditional measurements, multidimensional arrays, nisq bencmarks

* fixes for ubuntu install

* adding arguments and documentation

* fixing debug environments, and reverse pass

* editing scaffold script and readme for arguments

* LLVM 10 update

* remove llvm tests to reduce size

* Adding to build system

* removing warnings

* updating readme

* Delete .travis.yml

Not correct for build, will rework later
1 parent 0c99b10
  • Files
  • Changes
  • fe8df6f
  • /
  • build.sh
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:4d7bfa034cfaea4e8346396c6198cdd3e271d272
directory badge
swh:1:dir:fe8df6fbf3f0bca98b539c4393646ec21925607b
content badge
swh:1:cnt:2c3f09c9d7a8b50ed693899ddd6058a1003719d7

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
build.sh
#!/bin/bash

function show_help {
    echo "Usage: $0 [-b <build_dir>] [-G <build_system>]"
    echo "    -b   target build directory"
    echo "    -a   build all of LLVM and Scaffold"
    echo "    -m   build Scaffold"
    echo "    -G   Build system (Ninja or Make)"
}

curr_dir=$(pwd)
build_dir=""
build=0
source_dir=$(echo $0 | sed -E -e "s|^(.*)/?build.sh$|\1|g")
build_string="llvm-headers clang opt LLVMScaffold"

OS=$(uname -s)
generator="Ninja"

while getopts "h?mab:G:" opt; do
    case "$opt" in
    h|\?)
        show_help
        exit 0
        ;;
    b)
        build_dir="${OPTARG}"
        ;;
    a)
        build_string=""
        ;;
    m)
        build=1
        ;;
    G)
        generator="${OPTARG}"
        ;;
    esac
done

cmake_flags=""
if [ "${OS}" != "Darwin" ]; then
    cmake_flags="-DLLVM_USE_LINKER=gold"
fi

if [ "${build_dir}" == "" ]; then
    build_dir=$(cd "$(dirname '$0')" && pwd -P)"/build"
fi

if [ "${generator}" != "Ninja" ]; then
    generator="Unix Makefiles"
fi

llvm_src=$(cd "$(dirname '$0')" && pwd -P)"/llvm"

mkdir "${build_dir}"
cd ${build_dir}
cmake -G "${generator}" "${llvm_src}" ${cmake_flags} -DLLVM_ENABLE_PROJECTS="clang"
cd ${curr_dir}
if [ build = 1 ]; then
  ninja -C "${build_dir}" ${build_string}
fi
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API