Skip to content

Commit 1d07426

Browse files
committed
build: set os configuration parameter
1 parent c7c105a commit 1d07426

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/scripts/compile_wasm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#
2828
# Environment Variables:
2929
#
30-
# OS Host operating system. Default: `linux`.
3130
# NODE Command for running Node.js. Default: `node`.
3231
# NODE_PATH Path for resolving node modules.
3332
# EMCCC_COMPILER Emscripten C compiler. Default: `emcc`.
@@ -123,7 +122,7 @@ resolve_includes() {
123122
local script
124123
local opts
125124

126-
opts="{'wasm':true}"
125+
opts="{'wasm':true,'os':''}"
127126

128127
# Generate the script for resolving external include directories:
129128
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() {
142141
local script
143142
local opts
144143

145-
opts="{'wasm':true}"
144+
opts="{'wasm':true,'os':''}"
146145

147146
# Generate the script for resolving external source files:
148147
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() {
161160
local script
162161
local opts
163162

164-
opts="{'wasm':true}"
163+
opts="{'wasm':true,'os':''}"
165164

166165
# Generate the script for resolving libraries:
167166
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() {
180179
local script
181180
local opts
182181

183-
opts="{'wasm':true}"
182+
opts="{'wasm':true,'os':''}"
184183

185184
# Generate the script for resolving library paths:
186185
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

Comments
 (0)