File tree Expand file tree Collapse file tree 15 files changed +120
-70
lines changed Expand file tree Collapse file tree 15 files changed +120
-70
lines changed Original file line number Diff line number Diff line change 4
4
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
5
"version" : " 0.2.0" ,
6
6
"configurations" : [
7
+ {
8
+ "name" : " test-node" ,
9
+ "type" : " node" ,
10
+ "request" : " launch" ,
11
+ "cwd" : " ${workspaceFolder}" ,
12
+ "runtimeArgs" : [
13
+ " run-script" ,
14
+ " test-node"
15
+ ],
16
+ "runtimeExecutable" : " npm" ,
17
+ "skipFiles" : [
18
+ " <node_internals>/**"
19
+ ],
20
+ "outFiles" : [
21
+ " ${workspaceFolder}/packages/**/*.js" ,
22
+ " ${workspaceFolder}/packages/**/*.c" ,
23
+ " !**/node_modules/**"
24
+ ],
25
+ },
7
26
{
8
27
"name" : " index-browser" ,
9
28
"type" : " msedge" ,
75
94
"webpack:///*" : " /*"
76
95
},
77
96
},
78
- {
79
- "name" : " test-node" ,
80
- "type" : " node" ,
81
- "request" : " launch" ,
82
- "runtimeArgs" : [
83
- " run-script" ,
84
- " test-node"
85
- ],
86
- "runtimeExecutable" : " npm" ,
87
- "skipFiles" : [
88
- " <node_internals>/**"
89
- ],
90
- "outFiles" : [
91
- " ${workspaceFolder}/**/*.js" ,
92
- " ${workspaceFolder}/**/*.c" ,
93
- " !**/node_modules/**"
94
- ],
95
- },
96
97
{
97
98
"name" : " esbuild" ,
98
99
"type" : " node" ,
Original file line number Diff line number Diff line change 1
1
{
2
- // See https://go.microsoft.com/fwlink/?LinkId=733558
3
- // for the documentation about the tasks.json format
4
2
"version" : " 2.0.0" ,
5
3
"tasks" : [
6
4
{
7
5
"type" : " npm" ,
8
- "label" : " Compile Types Watch " ,
9
- "script" : " compile -types-watch" ,
6
+ "label" : " build-types-watch " ,
7
+ "script" : " build -types-watch" ,
10
8
"problemMatcher" : [
11
9
" $tsc-watch"
12
10
],
16
14
},
17
15
{
18
16
"type" : " npm" ,
19
- "label" : " Compile TypeScript Watch" ,
20
- "script" : " compile-ts-watch" ,
21
- "problemMatcher" : [],
17
+ "label" : " build-ts-watch" ,
18
+ "script" : " build-ts-watch" ,
19
+ "problemMatcher" : [
20
+ " $tsc-watch"
21
+ ],
22
+ "presentation" : {
23
+ "group" : " group-build"
24
+ }
25
+ },
26
+ {
27
+ "type" : " npm" ,
28
+ "label" : " build-cpp" ,
29
+ "script" : " build-cpp" ,
30
+ "problemMatcher" : [
31
+ " $gcc"
32
+ ],
33
+ "presentation" : {
34
+ "group" : " group-build"
35
+ }
36
+ },
37
+ {
38
+ "type" : " npm" ,
39
+ "label" : " build-cpp-watch" ,
40
+ "script" : " build-cpp-watch" ,
41
+ "dependsOn" : [
42
+ " build-cpp"
43
+ ],
44
+ "problemMatcher" : {
45
+ "owner" : " cpp" ,
46
+ "fileLocation" : [
47
+ " relative" ,
48
+ " ${workspaceFolder}"
49
+ ],
50
+ "pattern" : {
51
+ "regexp" : " ^(.*):(\\ d+):(\\ d+):\\ s+(warning|error):\\ s+(.*)$" ,
52
+ "file" : 1 ,
53
+ "line" : 2 ,
54
+ "column" : 3 ,
55
+ "severity" : 4 ,
56
+ "message" : 5
57
+ }
58
+ },
22
59
"presentation" : {
23
60
"group" : " group-build"
24
61
}
27
64
"type" : " npm" ,
28
65
"label" : " Web Server" ,
29
66
"script" : " serve" ,
30
- "problemMatcher" : [],
31
67
"presentation" : {
32
68
"group" : " group-build"
33
69
}
34
70
},
35
71
{
36
72
"label" : " build" ,
37
73
"dependsOn" : [
38
- " Compile Types Watch " ,
39
- " Compile TypeScript Watch " ,
40
- " Web Server "
74
+ " build-types-watch " ,
75
+ " build-ts-watch " ,
76
+ " build-cpp-watch "
41
77
],
42
78
"group" : {
43
79
"kind" : " build" ,
44
80
"isDefault" : true
45
- },
46
- "problemMatcher" : []
81
+ }
47
82
}
48
83
]
49
84
}
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ set(CMAKE_INSTALL_PREFIX "..")
8
8
set (VCPKG_INCLUDE_DIR ${VCPKG_INSTALLED_DIR} /${VCPKG_TARGET_TRIPLET} /include )
9
9
10
10
# See: https://github.com/emscripten-core/emscripten/blob/main/src/settings.js
11
- set (EM_CPP_FLAGS "" )
11
+ set (EM_CPP_FLAGS
12
+ "-flto"
13
+ )
12
14
13
15
set (EM_LINK_FLAGS
14
16
"-sASSERTIONS=0"
@@ -40,7 +42,7 @@ set(EM_LINK_FLAGS
40
42
"--post-js ${CMAKE_CURRENT_SOURCE_DIR} /src-cpp/src/post.js"
41
43
)
42
44
43
- if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
45
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" )
44
46
set (EM_LINK_FLAGS
45
47
${EM_LINK_FLAGS}
46
48
"-sUSE_ES6_IMPORT_META=1"
Original file line number Diff line number Diff line change 11
11
},
12
12
{
13
13
"name" : " vcpkg-emscripten" ,
14
+ "hidden" : true ,
14
15
"inherits" : [
15
16
" vcpkg"
16
17
],
31
32
"CMAKE_BUILD_TYPE" : " Debug"
32
33
}
33
34
},
35
+ {
36
+ "name" : " vcpkg-emscripten-RelWithDebInfo" ,
37
+ "inherits" : [
38
+ " vcpkg-emscripten"
39
+ ],
40
+ "binaryDir" : " ${sourceDir}/build" ,
41
+ "cacheVariables" : {
42
+ "CMAKE_BUILD_TYPE" : " RelWithDebInfo"
43
+ }
44
+ },
34
45
{
35
46
"name" : " vcpkg-emscripten-MinSizeRel" ,
36
47
"inherits" : [
Original file line number Diff line number Diff line change 44
44
"build-cpp:linux" : " ./scripts/cpp-build.sh" ,
45
45
"build-cpp:win32" : " wsl -e ./scripts/cpp-build.sh" ,
46
46
"build-cpp-watch" : " chokidar 'packages/*/src-cpp/**/*' -c 'npm run build-cpp'" ,
47
+ "build-types-watch" : " lerna run build-types-watch" ,
48
+ "build-ts-dev" : " lerna run build-ts-dev" ,
49
+ "build-ts-watch" : " lerna run build-ts-watch" ,
47
50
"build-docs-vitepress" : " vitepress build docs" ,
48
51
"build-docs" : " run-s pack-duckdb gen-docs build-docs-vitepress copy-res" ,
49
52
"build-docs-watch" : " vitepress dev docs" ,
Original file line number Diff line number Diff line change 21
21
"build-types" : " tsc --project tsconfig.json --emitDeclarationOnly" ,
22
22
"build-types-watch" : " npm run build-types -- --watch" ,
23
23
"build-ts" : " node esbuild.mjs" ,
24
- "build-ts-dev" : " npm run build-ts -- --mode= development" ,
25
- "build-ts-watch" : " npm run compile -ts-dev -- --watch" ,
24
+ "build-ts-dev" : " npm run build-ts -- --development" ,
25
+ "build-ts-watch" : " npm run build -ts-dev -- --watch" ,
26
26
"build-dev" : " run-p build-types build-ts-dev" ,
27
27
"build" : " run-p build-types build-ts" ,
28
28
"lint-skypack" : " npx -y @skypack/package-check" ,
Original file line number Diff line number Diff line change 25
25
"build-types" : " tsc --project tsconfig.json --emitDeclarationOnly" ,
26
26
"build-types-watch" : " npm run build-types -- --watch" ,
27
27
"build-ts" : " node esbuild.mjs" ,
28
- "build-ts-dev" : " npm run build-ts -- --mode= development" ,
29
- "build-ts-watch" : " npm run compile -ts-dev -- --watch" ,
28
+ "build-ts-dev" : " npm run build-ts -- --development" ,
29
+ "build-ts-watch" : " npm run build -ts-dev -- --watch" ,
30
30
"build-dev" : " run-p build-types build-ts-dev" ,
31
31
"build" : " npm-run-all --serial pack-duckdb --parallel build-types build-ts" ,
32
32
"lint-skypack" : " npx -y @skypack/package-check" ,
Original file line number Diff line number Diff line change 21
21
"build-types" : " tsc --project tsconfig.json --emitDeclarationOnly" ,
22
22
"build-types-watch" : " npm run build-types -- --watch" ,
23
23
"build-ts" : " node esbuild.mjs" ,
24
- "build-ts-dev" : " npm run build-ts -- --mode= development" ,
25
- "build-ts-watch" : " npm run compile -ts-dev -- --watch" ,
24
+ "build-ts-dev" : " npm run build-ts -- --development" ,
25
+ "build-ts-watch" : " npm run build -ts-dev -- --watch" ,
26
26
"build-dev" : " run-p build-types build-ts-dev" ,
27
27
"build" : " run-p build-types build-ts" ,
28
28
"lint-skypack" : " npx -y @skypack/package-check" ,
Original file line number Diff line number Diff line change 21
21
"build-types" : " tsc --project tsconfig.json --emitDeclarationOnly" ,
22
22
"build-types-watch" : " npm run build-types -- --watch" ,
23
23
"build-ts" : " node esbuild.mjs" ,
24
- "build-ts-dev" : " npm run build-ts -- --mode= development" ,
25
- "build-ts-watch" : " npm run compile -ts-dev -- --watch" ,
24
+ "build-ts-dev" : " npm run build-ts -- --development" ,
25
+ "build-ts-watch" : " npm run build -ts-dev -- --watch" ,
26
26
"build-dev" : " run-p build-types build-ts-dev" ,
27
27
"build" : " run-p build-types build-ts" ,
28
28
"lint-skypack" : " npx -y @skypack/package-check" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ find_package(Llama CONFIG REQUIRED)
8
8
9
9
set (EM_CPP_FLAGS
10
10
${EM_CPP_FLAGS}
11
+ "-msimd128"
11
12
"-fwasm-exceptions"
12
13
)
13
14
string (REPLACE ";" " " CPP_FLAGS "${EM_CPP_FLAGS} " )
You can’t perform that action at this time.
0 commit comments