Skip to content

Commit 3f4f3cc

Browse files
committed
Workaround sdk/shared headers not compiling on macOS
Without this, it tries to build Server SDK even though the project is marked as ExcludeFromBuild. Other useful links: - mirage/ocaml-rpc#45 - https://github.com/premake/premake-core/wiki/kind Error that this fixes: ``` ==== Building Server SDK (debug_x64) ==== Linking Server SDK ar: no archive members specified usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] make[1]: *** [bin/x64/Debug/sdk_d.a] Error 1 make: *** [Server SDK] Error 2 ```
1 parent e0e3688 commit 3f4f3cc

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Server/sdk/premake5.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
-- Workaround for `kind "None"` only being supported for Visual Studio.
2+
if _ACTION == "gmake" then
3+
return
4+
end
5+
16
project "Server SDK"
27
language "C++"
3-
kind "StaticLib"
8+
kind "None"
49
targetname "sdk"
510

611
vpaths {

Shared/premake5.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
-- Workaround for `kind "None"` only being supported for Visual Studio.
2+
if _ACTION == "gmake" then
3+
return
4+
end
5+
16
project "Shared"
27
language "C++"
3-
kind "StaticLib"
8+
kind "None"
49
targetname "shared"
510

611
vpaths {

0 commit comments

Comments
 (0)