Skip to content

Commit 4dc14ce

Browse files
authored
Merge pull request #1637 from ProfoundLogic/master
Simplify check for IBM i operating system
2 parents 8b1d8c6 + f917921 commit 4dc14ce

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

generate/templates/templates/binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"variables": {
33
"is_electron%": "<!(node ./utils/isBuildingForElectron.js <(node_root_dir))",
4-
"is_IBMi%": "<!(node ./utils/isBuildingForIBMi.js)"
4+
"is_IBMi%": "<!(node -p \"os.platform() == 'aix' && os.type() == 'OS400' ? 1 : 0\")"
55
},
66

77
"targets": [

utils/isBuildingForIBMi.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

vendor/libgit2.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"gcc_version%": 0,
1010
"is_electron%": "<!(node ../utils/isBuildingForElectron.js <(node_root_dir))",
1111
"is_clang%": 0,
12-
"is_IBMi%": "<!(node ../utils/isBuildingForIBMi.js)"
12+
"is_IBMi%": "<!(node -p \"os.platform() == 'aix' && os.type() == 'OS400' ? 1 : 0\")"
1313
},
1414
"targets": [
1515
{

0 commit comments

Comments
 (0)