Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG UE
Commits
827edc4e
Commit
827edc4e
authored
Feb 24, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/enhancement-212-warning-counts' into develop_integration_w08
parents
14c059bb
984a3759
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+15
-0
No files found.
cmake_targets/tools/build_helper
View file @
827edc4e
...
@@ -136,6 +136,20 @@ clean_all_files() {
...
@@ -136,6 +136,20 @@ clean_all_files() {
# Compilers
# Compilers
###################################
###################################
#check_warnings:
# print error message if the compilation had warnings
#argument:
# $1: log file
check_warnings() {
#we look for 'warning:' in the compilation log file
#this is how gcc starts a warning
#this is not perfect, we may get false positive
warning_count=`grep "warning:" "$1"|wc -l`
if [ $warning_count -gt 0 ]; then
echo_error "WARNING: $warning_count warnings. See $1"
fi
}
compilations() {
compilations() {
cd $OPENAIR_DIR/cmake_targets/$1/build
cd $OPENAIR_DIR/cmake_targets/$1/build
set +e
set +e
...
@@ -153,6 +167,7 @@ compilations() {
...
@@ -153,6 +167,7 @@ compilations() {
if [ -s $3 ] ; then
if [ -s $3 ] ; then
cp $3 $4
cp $3 $4
echo_success "$2 compiled"
echo_success "$2 compiled"
check_warnings "$dlog/$2.$REL.txt"
else
else
echo_error "$2 compilation failed"
echo_error "$2 compilation failed"
exit 1
exit 1
...
...
Write
Preview
Markdown
is supported
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