Skip to content

Commit

Permalink
feat: support IBM Open XL C/C++ on z/OS (#2743)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabylb authored Oct 8, 2022
1 parent 4bc4747 commit 7d0c83d
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions addon.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,35 @@
],
}],
[ 'OS=="zos"', {
'cflags': [
'-q64',
'-Wc,DLL',
'-qlonglong',
'-qenum=int',
'-qxclang=-fexec-charset=ISO8859-1'
'conditions': [
[ '"<!(echo $CC)" != "clang" and \
"<!(echo $CC)" != "ibm-clang64" and \
"<!(echo $CC)" != "ibm-clang"', {
'cflags': [
'-q64',
'-Wc,DLL',
'-qlonglong',
'-qenum=int',
'-qxclang=-fexec-charset=ISO8859-1'
],
'ldflags': [
'-q64',
'<(node_exp_file)',
],
}, {
'cflags': [
'-m64',
],
'ldflags': [
'-m64',
'<(node_exp_file)',
],
}],
],
'defines': [
'_ALL_SOURCE=1',
'_ALL_SOURCE',
'MAP_FAILED=-1',
'_UNIX03_SOURCE=1'
],
'ldflags': [
'-q64',
'<(node_exp_file)'
'_UNIX03_SOURCE',
],
}],
[ 'OS=="win"', {
Expand Down

0 comments on commit 7d0c83d

Please sign in to comment.