mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
minor build changes
This commit is contained in:
parent
255df4d352
commit
bf473f5c4c
@ -52,7 +52,7 @@ fn addEngineSources(b: *std.Build, opts: LibBuildOpts) *std.Build.Module {
|
||||
if(strict) "-Werror" else "",
|
||||
"-std=gnu23",
|
||||
"-Wno-keyword-macro", // cuz bools
|
||||
"-fPIC",
|
||||
"-fPIE",
|
||||
},
|
||||
});
|
||||
|
||||
@ -63,7 +63,7 @@ fn addEngineSources(b: *std.Build, opts: LibBuildOpts) *std.Build.Module {
|
||||
"src/tinycthread.c",
|
||||
},
|
||||
.flags = &.{
|
||||
"-fPIC",
|
||||
"-fPIE",
|
||||
},
|
||||
});
|
||||
}
|
||||
@ -153,12 +153,14 @@ pub fn build(b: *std.Build) !void {
|
||||
.name = "neonucleus",
|
||||
.root_module = engineMod,
|
||||
.pic = true,
|
||||
.code_model = .default,
|
||||
});
|
||||
|
||||
const engineShared = b.addSharedLibrary(.{
|
||||
.name = if(os == .windows) "neonucleusdll" else "neonucleus",
|
||||
.root_module = engineMod,
|
||||
.pic = true,
|
||||
.code_model = .default,
|
||||
});
|
||||
|
||||
const engineStep = b.step("engine", "Builds the engine as a static library");
|
||||
|
@ -811,8 +811,6 @@ int main(int argc, char **argv) {
|
||||
double interval = 1.0/tps;
|
||||
double totalTime = 0;
|
||||
|
||||
SetTargetFPS(144);
|
||||
|
||||
while(true) {
|
||||
if(WindowShouldClose()) break;
|
||||
nn_setEnergyInfo(computer, 5000, 5000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user