File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST ) ) )
2
+ CONFIGURATION ?= debug
2
3
3
4
.PHONY : JavaScriptKitExec
4
5
JavaScriptKitExec :
5
6
cd JavaScriptKitExec && \
6
- swift build --triple wasm32-unknown-wasi
7
+ swift build --triple wasm32-unknown-wasi \
8
+ --configuration $(CONFIGURATION )
7
9
8
10
dist/JavaScriptKitExec.wasm : JavaScriptKitExec
9
11
mkdir -p dist
10
- cp ./JavaScriptKitExec/.build/debug /JavaScriptKitExec $@
12
+ cp ./JavaScriptKitExec/.build/$( CONFIGURATION ) /JavaScriptKitExec $@
11
13
12
14
node_modules :
13
15
npm install
Original file line number Diff line number Diff line change 11
11
12
12
.PHONY : test
13
13
test :
14
- cd IntegrationTests && make test
14
+ cd IntegrationTests && \
15
+ CONFIGURATION=debug make test && \
16
+ CONFIGURATION=release make test
15
17
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public class JSObjectRef: Equatable {
42
42
setJSValue ( this: self , index: Int32 ( index) , value: value)
43
43
}
44
44
45
+ static let _JS_Predef_Value_Global : UInt32 = 0
45
46
public static let global = JSObjectRef ( id: _JS_Predef_Value_Global)
46
47
47
48
deinit { _destroy_ref ( id) }
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ typedef struct {
28
28
JavaScriptPayload3 payload3 ;
29
29
} RawJSValue ;
30
30
31
-
32
- const unsigned int _JS_Predef_Value_Global = 0 ;
33
-
34
31
__attribute__((
35
32
__import_module__ ("javascript_kit" ),
36
33
__import_name__ ("swjs_set_prop" )
You can’t perform that action at this time.
0 commit comments