27
27
#
28
28
# Environment Variables:
29
29
#
30
- # OS Host operating system. Default: `linux`.
31
30
# NODE Command for running Node.js. Default: `node`.
32
31
# NODE_PATH Path for resolving node modules.
33
32
# EMCCC_COMPILER Emscripten C compiler. Default: `emcc`.
@@ -123,7 +122,7 @@ resolve_includes() {
123
122
local script
124
123
local opts
125
124
126
- opts=" {'wasm':true}"
125
+ opts=" {'wasm':true,'os':'' }"
127
126
128
127
# Generate the script for resolving external include directories:
129
128
script=' "' " var path = require('path'); var arr = require('@stdlib/utils/library-manifest')(path.join('$1 ','manifest.json'),${opts} ,{'basedir':'$1 ','paths':'posix'}).include; var str = ''; for (var i = 0; i < arr.length; i++){var p = path.resolve('$1 ', arr[i]); if (p.indexOf('$1 ') === 0) {continue;}; str += '-I '+p+' ';}; console.log(str.substring(0, str.length-1));" ' "'
@@ -142,7 +141,7 @@ resolve_source_files() {
142
141
local script
143
142
local opts
144
143
145
- opts=" {'wasm':true}"
144
+ opts=" {'wasm':true,'os':'' }"
146
145
147
146
# Generate the script for resolving external source files:
148
147
script=' "' " var path = require('path'); var arr = require('@stdlib/utils/library-manifest')(path.join('$1 ','manifest.json'),${opts} ,{'basedir':'$1 ','paths':'posix'}).src; var str = ''; for (var i = 0; i < arr.length; i++){var p = path.resolve('$1 ', arr[i]); if (p.indexOf('$1 ') === 0) {continue;}; str += p+' ';}; console.log(str.substring(0, str.length-1));" ' "'
@@ -161,7 +160,7 @@ resolve_libraries() {
161
160
local script
162
161
local opts
163
162
164
- opts=" {'wasm':true}"
163
+ opts=" {'wasm':true,'os':'' }"
165
164
166
165
# Generate the script for resolving libraries:
167
166
script=' "' " var path = require('path'); var arr = require('@stdlib/utils/library-manifest')(path.join('$1 ','manifest.json'),${opts} ,{'basedir':'$1 ','paths':'posix'}).libraries; var str = ''; for (var i = 0; i < arr.length; i++){str += arr[i]+' ';}; console.log(str.substring(0, str.length-1));" ' "'
@@ -180,7 +179,7 @@ resolve_libpaths() {
180
179
local script
181
180
local opts
182
181
183
- opts=" {'wasm':true}"
182
+ opts=" {'wasm':true,'os':'' }"
184
183
185
184
# Generate the script for resolving library paths:
186
185
script=' "' " var path = require('path'); var arr = require('@stdlib/utils/library-manifest')(path.join('$1 ','manifest.json'),${opts} ,{'basedir':'$1 ','paths':'posix'}).libpath; var str = ''; for (var i = 0; i < arr.length; i++){var p = path.resolve('$1 ', arr[i]); str += '-L '+p+' ';}; console.log(str.substring(0, str.length-1));" ' "'
0 commit comments