Skip to content

Commit 401bf3a

Browse files
committed
Merge branch 'new-bee'
2 parents 996e21a + a5d53f9 commit 401bf3a

File tree

25 files changed

+632
-136
lines changed

25 files changed

+632
-136
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
container:
3636
image: ${{ matrix.container }}
3737
steps:
38+
- uses: actions/checkout@v4
39+
with:
40+
submodules: recursive
41+
- uses: actboy168/setup-luamake@master
42+
3843
- name: Install aarch64-linux-gnu
3944
if: ${{ matrix.platform == 'linux-arm64' && matrix.libc != 'musl' }}
4045
run: |
@@ -53,10 +58,6 @@ jobs:
5358
sudo apt update
5459
sudo apt install ninja-build
5560
56-
- uses: actions/checkout@v4
57-
with:
58-
submodules: recursive
59-
6061
- name: Build for Windows
6162
if: ${{ matrix.target == 'windows' }}
6263
run: .\make.bat ${{ matrix.platform }}
@@ -69,7 +70,6 @@ jobs:
6970
- name: Build for macOS
7071
if: ${{ matrix.target == 'darwin' }}
7172
run: |
72-
brew install ninja
7373
./make.sh ${{ matrix.platform }}
7474
7575
- name: Build for x64 glibc

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17+
- uses: actboy168/setup-luamake@master
1718
- name: Build for Windows
1819
if: ${{ matrix.target == 'windows' }}
1920
run: .\make.bat
@@ -26,5 +27,4 @@ jobs:
2627
- name: Build for macOS
2728
if: ${{ matrix.target == 'darwin' }}
2829
run: |
29-
brew install ninja
3030
./make.sh

.vscode/c_cpp_properties.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [
9+
"_DEBUG",
10+
"UNICODE",
11+
"_UNICODE"
12+
],
13+
"windowsSdkVersion": "10.0.26100.0",
14+
"compilerPath": "cl.exe",
15+
"cStandard": "c17",
16+
"cppStandard": "c++17",
17+
"intelliSenseMode": "windows-msvc-x64"
18+
}
19+
],
20+
"version": 4
21+
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"type": "lua",
2727
"request": "attach",
2828
"stopOnEntry": false,
29-
"address": "127.0.0.1:11413",
29+
"address": "127.0.0.1:11414",
3030
"outputCapture": [
3131
],
3232
"sourceFormat": "string",

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
//"--shownode",
99
//"--lazy",
1010
],
11+
"files.associations": {
12+
"thread": "cpp"
13+
},
1114
}

3rd/bee.lua

Submodule bee.lua updated 286 files

3rd/luamake

main.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ ROOT = fs.path(util.expandPath(rootPath))
5353
LOGPATH = LOGPATH and util.expandPath(LOGPATH) or (ROOT:string() .. '/log')
5454
METAPATH = METAPATH and util.expandPath(METAPATH) or (ROOT:string() .. '/meta')
5555

56+
util.enableCloseFunction()
57+
util.enableFormatString()
58+
5659
---@diagnostic disable-next-line: deprecated
5760
debug.setcstacklimit(200)
5861
collectgarbage('generational', 10, 50)

make.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,25 @@ lm:import "make/code_format.lua"
2323

2424
lm:source_set 'lpeglabel' {
2525
rootdir = '3rd',
26-
includes = "bee.lua/3rd/lua",
26+
includes = "bee.lua/3rd/lua54",
2727
sources = "lpeglabel/*.c",
2828
defines = {
2929
'MAXRECLEVEL=1000',
3030
},
31+
deps = "source_lua",
3132
}
3233

3334
lm:executable "lua-language-server" {
3435
deps = {
36+
"source_bee",
37+
"source_lua",
3538
"lpeglabel",
3639
"source_bootstrap",
3740
includeCodeFormat and "code_format" or nil,
3841
},
3942
includes = {
4043
"3rd/bee.lua",
41-
"3rd/bee.lua/3rd/lua",
44+
"3rd/bee.lua/3rd/lua54",
4245
},
4346
sources = "make/modules.cpp",
4447
windows = {

0 commit comments

Comments
 (0)