Files
lifting-bits-mcsema/scripts/docker-lifter-entrypoint.sh
Eric Kilmer 339800eda3 Rework Docker Image build (#741)
* Try reworking Docker image

* Fix some old behavior for building abi libraries

I don't think the result is actually usable...

* Remove most Python2 references

Still left some references to python2 for helper scripts since they
aren't tested (afaik) in CI

* Fix CI

* Remove old CMakeLists.txt and remove support for old TRAILOFBITS_LIBRARIES method of building

* Update README
2021-03-05 16:43:20 -05:00

69 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# Copyright (c) 2020 Trail of Bits, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Needed to process multiple arguments to docker image
V=""
case ${LLVM_VERSION} in
llvm35*)
V=3.5
;;
llvm36*)
V=3.6
;;
llvm37*)
V=3.7
;;
llvm38*)
V=3.8
;;
llvm39*)
V=3.9
;;
# There is an llvm401 that we treat as 4.0
llvm4*)
V=4.0
;;
llvm5*)
V=5.0
;;
llvm6*)
V=6.0
;;
llvm7*)
V=7.0
;;
llvm8*)
V=8.0
;;
llvm9*)
V=9.0
;;
llvm10*)
V=10.0
;;
llvm11*)
V=11.0
;;
*)
echo "Unknown LLVM version: ${LLVM_VERSION}"
exit 1
;;
esac
mcsema-lift-${V} "$@"