Skip to content

Commit 06981ee

Browse files
aman-095kgryte
andauthored
build: add WebAssembly configuration for math/base/special/abs2f and math/base/special/sqrtf
PR-URL: #3026 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Signed-off-by: Athan Reines <[email protected]>
1 parent d1d770a commit 06981ee

File tree

2 files changed

+172
-136
lines changed

2 files changed

+172
-136
lines changed
Lines changed: 82 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,84 @@
11
{
2-
"options": {
3-
"task": "build"
4-
},
5-
"fields": [
6-
{
7-
"field": "src",
8-
"resolve": true,
9-
"relative": true
10-
},
11-
{
12-
"field": "include",
13-
"resolve": true,
14-
"relative": true
15-
},
16-
{
17-
"field": "libraries",
18-
"resolve": false,
19-
"relative": false
20-
},
21-
{
22-
"field": "libpath",
23-
"resolve": true,
24-
"relative": false
25-
}
26-
],
27-
"confs": [
28-
{
29-
"task": "build",
30-
"src": [
31-
"./src/main.c"
32-
],
33-
"include": [
34-
"./include"
35-
],
36-
"libraries": [],
37-
"libpath": [],
38-
"dependencies": [
39-
"@stdlib/math/base/napi/unary"
40-
]
41-
},
42-
{
43-
"task": "benchmark",
44-
"src": [
45-
"./src/main.c"
46-
],
47-
"include": [
48-
"./include"
49-
],
50-
"libraries": [],
51-
"libpath": [],
52-
"dependencies": []
53-
},
54-
{
55-
"task": "examples",
56-
"src": [
57-
"./src/main.c"
58-
],
59-
"include": [
60-
"./include"
61-
],
62-
"libraries": [],
63-
"libpath": [],
64-
"dependencies": []
65-
}
66-
]
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
30+
"task": "build",
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math/base/napi/unary"
42+
]
43+
},
44+
{
45+
"task": "benchmark",
46+
"wasm": false,
47+
"src": [
48+
"./src/main.c"
49+
],
50+
"include": [
51+
"./include"
52+
],
53+
"libraries": [],
54+
"libpath": [],
55+
"dependencies": []
56+
},
57+
{
58+
"task": "examples",
59+
"wasm": false,
60+
"src": [
61+
"./src/main.c"
62+
],
63+
"include": [
64+
"./include"
65+
],
66+
"libraries": [],
67+
"libpath": [],
68+
"dependencies": []
69+
},
70+
{
71+
"task": "build",
72+
"wasm": true,
73+
"src": [
74+
"./src/main.c"
75+
],
76+
"include": [
77+
"./include"
78+
],
79+
"libraries": [],
80+
"libpath": [],
81+
"dependencies": []
82+
}
83+
]
6784
}
Lines changed: 90 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,92 @@
11
{
2-
"options": {
3-
"task": "build"
4-
},
5-
"fields": [
6-
{
7-
"field": "src",
8-
"resolve": true,
9-
"relative": true
10-
},
11-
{
12-
"field": "include",
13-
"resolve": true,
14-
"relative": true
15-
},
16-
{
17-
"field": "libraries",
18-
"resolve": false,
19-
"relative": false
20-
},
21-
{
22-
"field": "libpath",
23-
"resolve": true,
24-
"relative": false
25-
}
26-
],
27-
"confs": [
28-
{
29-
"task": "build",
30-
"src": [
31-
"./src/sqrtf.c"
32-
],
33-
"include": [
34-
"./include"
35-
],
36-
"libraries": [
37-
"-lm"
38-
],
39-
"libpath": [],
40-
"dependencies": [
41-
"@stdlib/math/base/napi/unary"
42-
]
43-
},
44-
{
45-
"task": "benchmark",
46-
"src": [
47-
"./src/sqrtf.c"
48-
],
49-
"include": [
50-
"./include"
51-
],
52-
"libraries": [
53-
"-lm"
54-
],
55-
"libpath": [],
56-
"dependencies": []
57-
},
58-
{
59-
"task": "examples",
60-
"src": [
61-
"./src/sqrtf.c"
62-
],
63-
"include": [
64-
"./include"
65-
],
66-
"libraries": [
67-
"-lm"
68-
],
69-
"libpath": [],
70-
"dependencies": []
71-
}
72-
]
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
30+
"task": "build",
31+
"wasm": false,
32+
"src": [
33+
"./src/sqrtf.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [
39+
"-lm"
40+
],
41+
"libpath": [],
42+
"dependencies": [
43+
"@stdlib/math/base/napi/unary"
44+
]
45+
},
46+
{
47+
"task": "benchmark",
48+
"wasm": false,
49+
"src": [
50+
"./src/sqrtf.c"
51+
],
52+
"include": [
53+
"./include"
54+
],
55+
"libraries": [
56+
"-lm"
57+
],
58+
"libpath": [],
59+
"dependencies": []
60+
},
61+
{
62+
"task": "examples",
63+
"wasm": false,
64+
"src": [
65+
"./src/sqrtf.c"
66+
],
67+
"include": [
68+
"./include"
69+
],
70+
"libraries": [
71+
"-lm"
72+
],
73+
"libpath": [],
74+
"dependencies": []
75+
},
76+
{
77+
"task": "build",
78+
"wasm": true,
79+
"src": [
80+
"./src/sqrtf.c"
81+
],
82+
"include": [
83+
"./include"
84+
],
85+
"libraries": [
86+
"-lm"
87+
],
88+
"libpath": [],
89+
"dependencies": []
90+
}
91+
]
7392
}

0 commit comments

Comments
 (0)