Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_pdata
Commits
2ad9dce2
Commit
2ad9dce2
authored
Dec 16, 2016
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing installation on OSX
parent
a9743fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
script/detect_gcc
script/detect_gcc
+20
-10
No files found.
script/detect_gcc
View file @
2ad9dce2
#! /bin/bash
function
gpp_clang
()
{
if
[
x
"
$dgc_compiler
"
==
g++
]
;
then
CXX
=
g++
CC
=
gcc
F77
=
gfortran
FC
=
gfortran
else
CXX
=
clang++
CC
=
clang
F77
=
gfortran
FC
=
gfortran
fi
}
function
detect_compiler
()
{
gpp_found
=
0
...
...
@@ -49,9 +65,9 @@ function detect_compiler()
dgc_ret
=
1
gpp_found
=
1
fi
else
dgc_ret
=
2
fi
dgc_ret
=
2
fi
g++
--version
|
grep
g++
...
...
@@ -164,17 +180,11 @@ function detect_compiler()
FC
=
ifort
dgc_compiler
=
icpc
else
CXX
=
g++
CC
=
gcc
F77
=
gfortran
FC
=
gfortran
gpp_clang
fi
dgc_ret
=
1
else
CXX
=
g++
CC
=
gcc
F77
=
gfortran
FC
=
gfortran
gpp_clang
fi
}
...
...
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