File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -116,23 +116,13 @@ pub fn build(b: *std.Build) void {
116116 b .installArtifact (imgui );
117117
118118 const emscripten = target .result .os .tag == .emscripten ;
119- if (emscripten ) {
120- imgui .root_module .addCMacro ("__EMSCRIPTEN__" , "" );
121- // TODO: read from enviroment or `emcc --version`
122- imgui .root_module .addCMacro ("__EMSCRIPTEN_major__" , "3" );
123- imgui .root_module .addCMacro ("__EMSCRIPTEN_minor__" , "1" );
124- imgui .root_module .stack_protector = false ;
125- //imgui.root_module.disable_stack_probing = true;
126- }
127119
128120 imgui .addIncludePath (b .path ("libs" ));
129121 imgui .addIncludePath (b .path ("libs/imgui" ));
130122
131- if (! emscripten ) {
132- imgui .linkLibC ();
133- if (target .result .abi != .msvc )
134- imgui .linkLibCpp ();
135- }
123+ imgui .linkLibC ();
124+ if (target .result .abi != .msvc )
125+ imgui .linkLibCpp ();
136126
137127 imgui .addCSourceFile (.{
138128 .file = b .path ("src/zgui.cpp" ),
You can’t perform that action at this time.
0 commit comments