Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
2ad9dce2
Commit
2ad9dce2
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing installation on OSX
parent
a9743fd5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
script/detect_gcc
+20
-10
20 additions, 10 deletions
script/detect_gcc
with
20 additions
and
10 deletions
script/detect_gcc
+
20
−
10
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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment