Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
0c84a156
Commit
0c84a156
authored
Dec 10, 2015
by
Jan Möbius
Browse files
Build OpenFlipper Free with icecc
parent
1af85229
Pipeline
#284
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CI/ci-linux.sh
View file @
0c84a156
...
@@ -14,11 +14,19 @@ BUILDPATH=""
...
@@ -14,11 +14,19 @@ BUILDPATH=""
if
[
"
$COMPILER
"
==
"gcc"
]
;
then
if
[
"
$COMPILER
"
==
"gcc"
]
;
then
echo
"Building with GCC"
;
echo
"Building with GCC"
;
BUILDPATH
=
"gcc"
BUILDPATH
=
"gcc"
# without icecc: no options required
OPTIONS
=
"-DCMAKE_CXX_COMPILER=/usr/lib/icecc/bin/g++ -DCMAKE_C_COMPILER=/usr/lib/icecc/bin/gcc"
export
ICECC_CXX
=
/usr/bin/g++
;
export
ICECC_CC
=
/usr/bin/gcc
elif
[
"
$COMPILER
"
==
"clang"
]
;
then
elif
[
"
$COMPILER
"
==
"clang"
]
;
then
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DGTEST_PREFIX=~/sw/gtest-1.7.0-clang/ "
# Build options without icecc
# OPTIONS="$OPTIONS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DGTEST_PREFIX=~/sw/gtest-1.7.0-clang/ "
OPTIONS
=
"
$OPTIONS
-DCMAKE_CXX_COMPILER=/usr/lib/icecc/bin/g++ -DCMAKE_C_COMPILER=/usr/lib/icecc/bin/gcc -DGTEST_PREFIX=~/sw/gtest-1.7.0-clang/ "
BUILDPATH
=
"clang"
BUILDPATH
=
"clang"
echo
"Building with CLANG"
;
echo
"Building with CLANG"
;
export
ICECC_CXX
=
/usr/bin/clang++
;
export
ICECC_CC
=
/usr/bin/clang
fi
fi
if
[
"
$LANGUAGE
"
==
"C++98"
]
;
then
if
[
"
$LANGUAGE
"
==
"C++98"
]
;
then
...
@@ -72,7 +80,7 @@ cd build-release-$BUILDPATH
...
@@ -72,7 +80,7 @@ cd build-release-$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENFLIPPER_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENFLIPPER_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
$OPTIONS
../
#build it
#build it
make
make
-j16
#########################################
#########################################
# Run Release Unittests
# Run Release Unittests
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment