Skip to content

Commit

Permalink
netbsd use gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 13, 2024
1 parent 8c880a2 commit 21698dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions compile/ninja/netbsd.ninja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ninja_required_version = 1.7
builddir = build/netbsd
bin = $builddir/bin
obj = $builddir/obj
cc = clang
cc = gcc
ar = ar
luamake = luamake
rule c_source_bee
Expand Down Expand Up @@ -84,7 +84,7 @@ build $obj/source_bee/lua_time.obj: cxx_source_bee_2 $
bee.lua/binding/lua_time.cpp
rule c_source_lua
command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall -DMAKE_LIB $
-DLUA_USE_LINUX -DNDEBUG -o $out -c $in
-DLUA_USE_LINUX -DNDEBUG -Wno-maybe-uninitialized -o $out -c $in
description = Compile C $out
deps = gcc
depfile = $out.d
Expand All @@ -101,7 +101,7 @@ build $obj/source_bootstrap/main.obj: cxx_source_bootstrap $
bee.lua/bootstrap/main.cpp
rule link_bootstrap
command = $cc $in -o $out -Wl,-E -lm -l:libinotify.a -L/usr/pkg/lib $
-pthread -Wl,--push-state,-Bstatic -lstdc++ -Wl,--pop-state -Wl,-S,-x
-pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -s
description = Link Exe $out
rule copy
command = cp -fv $in$input $out 1>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion scripts/globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ globals.compiler = globals.compiler or (function ()
return "gcc"
end
end
if globals.os == "linux" then
if globals.os == "linux" or globals.os == "netbsd" then
return "gcc"
end
if globals.os == "emscripten" then
Expand Down

0 comments on commit 21698dd

Please sign in to comment.