Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xQML
xQML
Commits
267743f5
Commit
267743f5
authored
Feb 14, 2019
by
Matthieu Tristram
Browse files
Correct for icc option
parent
f3a3ba3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
setup.py
setup.py
+9
-2
No files found.
setup.py
View file @
267743f5
...
...
@@ -11,17 +11,24 @@ try:
except
AttributeError
:
numpy_include
=
numpy
.
get_numpy_include
()
print
(
sys
.
argv
)
if
'--disable-openmp'
in
sys
.
argv
:
sys
.
argv
.
pop
(
sys
.
argv
.
index
(
'--disable-openmp'
))
USE_OPENMP
=
False
else
:
USE_OPENMP
=
True
if
'--icc'
in
sys
.
argv
:
sys
.
argv
.
pop
(
sys
.
argv
.
index
(
'--icc'
))
USE_ICC
=
True
else
:
USE_ICC
=
False
libs
=
[
'm'
]
use_icc
=
True
if
'--icc'
in
sys
.
argv
else
False
extra
=
[
'-std=gnu99'
]
if
use_icc
:
if
USE_ICC
:
if
USE_OPENMP
:
libs
+=
[
'gomp'
,
'iomp5'
]
extra
+=
[
'-openmp'
]
...
...
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