Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
45e772f5
Commit
45e772f5
authored
Aug 02, 2017
by
incardon
Browse files
Fixing Apple OSX installation
parent
ca77a2a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/detect_gcc
View file @
45e772f5
...
...
@@ -112,7 +112,7 @@ function detect_compiler()
fi
g++
--version
|
grep
"g++"
>
/dev/null 2>&1
if
[
$?
==
0
]
;
then
if
[
$?
==
0
-a
$gpp_found
-ne
1
]
;
then
dgc_major
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1/g'
)
dgc_middle
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2/g'
)
dgc_minor
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\3/g'
)
...
...
@@ -148,7 +148,7 @@ function detect_compiler()
fi
g++
--version
|
grep
"clang"
>
/dev/null 2>&1
if
[
$?
==
0
]
;
then
if
[
$?
==
0
$gpp_found
-ne
1
]
;
then
dgc_major
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1/g'
)
dgc_middle
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2/g'
)
dgc_minor
=
$(
g++
--version
|
grep
g++ |
sed
's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\3/g'
)
...
...
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