Skip to content

Commit

Permalink
[Cython] Fix CYTHON_FALLTHROUGH for icc
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Nov 26, 2021
1 parent 0017746 commit 484b6cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interfaces/cython/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ localenv.Prepend(LIBS=localenv['cantera_libs'])
if localenv['HAS_CLANG'] and parse_version(py_version) == parse_version('3.8'):
localenv.Append(CXXFLAGS='-Wno-deprecated-declarations')

if localenv["CC"] == "icc":
localenv.Append(CPPDEFINES={"CYTHON_FALLTHROUGH":" __attribute__((fallthrough))"})

if localenv['OS'] == 'Darwin':
localenv.Append(LINKFLAGS='-undefined dynamic_lookup')
elif localenv['OS'] == 'Windows':
Expand Down

0 comments on commit 484b6cd

Please sign in to comment.