Accepting request 715366 from devel:tools:statica

OBS-URL: https://build.opensuse.org/request/show/715366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/klee?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2019-07-16 06:41:28 +00:00 committed by Git OBS Bridge
commit a8b474c0ae
4 changed files with 487 additions and 1439 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jul 12 23:35:27 UTC 2019 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Use -flto=thin instead of -flto=<number> for Clang.
-------------------------------------------------------------------
Mon Jul 1 23:16:30 UTC 2019 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Switch to LLVM 8.
-------------------------------------------------------------------
Mon May 27 09:39:22 UTC 2019 - jslaby@suse.com

View File

@ -16,7 +16,7 @@
#
%define llvm_version_major 7
%define llvm_version_major 8
%define llvm_version_minor 0
%define llvm_version %{llvm_version_major}
@ -81,12 +81,20 @@ sed -i '1s@/usr/bin/env python3*@/usr/bin/python3@' \
tools/ktest-tool/ktest-tool
%build
# Make _lto_cflags compatible with Clang. On some arches, it doesn't work.
%ifarch x86_64 %{ix86} ppc64le s390x
%define _lto_cflags "-flto=thin"
%else
%define _lto_cflags %{nil}
%endif
%define __builder ninja
# they use -DNDEBUG, but we cannot, hence setting CMAKE_C*_FLAGS
# SHARED libs do not work at all yet
%cmake \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_AR=%{_bindir}/llvm-ar \
-DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \
-DENABLE_DOXYGEN=OFF \
-DENABLE_SOLVER_STP=ON \
-DENABLE_TCMALLOC=ON \

View File

@ -13,7 +13,9 @@
// Will return true if cmd crashes (e.g. for testing crash reporting).
#include "llvm/Support/Program.h"
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main(int argc, const char **argv) {
@ -33,8 +35,8 @@ int main(int argc, const char **argv) {
auto Program = sys::findProgramByName(argv[0]);
if (!Program) {
errs() << "Error: Unable to find `" << argv[0]
<< "' in PATH: " << Program.getError().message() << "\n";
WithColor::error() << "unable to find `" << argv[0]
<< "' in PATH: " << Program.getError().message() << "\n";
return 1;
}
@ -53,7 +55,7 @@ int main(int argc, const char **argv) {
Result = -3;
#endif
if (Result < 0) {
errs() << "Error: " << ErrMsg << "\n";
WithColor::error() << ErrMsg << "\n";
if (ExpectCrash)
return 0;
return 1;