2da176f88f
This was difficult to port largely because of luamake, which: 1) Is itself built by a ninja definition file precompiled just for FreeBSD which doesn't work on FreeBSD. 2) Has no documentation whatsoever. I'd love to get rid of the BINARY_ALIAS= gcc=cc hack, but I have literally no idea where luamake picks up its compiler from. Any advice on the above is very welcome! sumneko, luamake (and associated dep bee.lua) went out of their way to try to support FreeBSD, so it'd be nice to get it working right without heavy patching. The Sumneko Lua Language Server is a comprehensive Lua development server. It functions as an LSP client, supporting: * Over 20 supported annotations for documenting your code * Go to definition * Dynamic type checking * Find references * Diagnostics/Warnings * Syntax checking * Element renaming * Hover to view details on variables, functions, and more * Autocompletion * Support for libraries * Code formatting * Spell checking * Custom plugins WWW: https://github.com/sumneko/lua-language-server
30 lines
811 B
Lua
30 lines
811 B
Lua
--- 3rd/bee.lua/compile/common.lua.orig 2022-08-25 08:04:59 UTC
|
|
+++ 3rd/bee.lua/compile/common.lua
|
|
@@ -37,7 +37,7 @@ local function need(lst)
|
|
end
|
|
|
|
lm:source_set "source_bee" {
|
|
- includes = ".",
|
|
+ includes = {"%%LOCALBASE%%/include", "."},
|
|
sources = "bee/**/*.cpp",
|
|
windows = {
|
|
sources = need "win"
|
|
@@ -152,8 +152,9 @@ lm:lua_source "source_bee" {
|
|
sources = {
|
|
"!binding/lua_unicode.cpp",
|
|
},
|
|
+ includes = "%%LOCALBASE%%/include",
|
|
links = "inotify",
|
|
- ldflags = "-pthread"
|
|
+ ldflags = {"-L%%LOCALBASE%%/lib", "-pthread"}
|
|
},
|
|
}
|
|
|
|
@@ -191,6 +192,6 @@ lm:source_set 'source_lua' {
|
|
flags = "/wd4267"
|
|
},
|
|
gcc = {
|
|
- flags = "-Wno-maybe-uninitialized",
|
|
+ flags = "-Wno-uninitialized",
|
|
}
|
|
}
|