Skip to content

Commit

Permalink
Better optimizations for libphpwrapper.a
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <dusan@dusanmalusev.dev>
  • Loading branch information
CodeLieutenant committed Jan 1, 2024
1 parent 211fcc6 commit 3954252
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions phper-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@ fn main() {
.cpp(false)
.debug(false)
.files(&c_files)
.extra_warnings(true)
.extra_warnings(false)
.warnings(false)
.include("include")
// .flag("-falign-functions")
// .flag("-flto=auto")
// .flag("-std=c2x") // Replace with -std=c23 after CLANG 18
// .flag("-pedantic")
// .flag("-Wno-ignored-qualifiers")
// .force_frame_pointer(false)
// .opt_level(3)
.warnings(true)
// .use_plt(false)
.flag("-std=c2x") // Replace with -std=c23 after CLANG 18
.force_frame_pointer(false)
.opt_level(3)
.use_plt(false)
.static_flag(true)
.pic(true)
.compile("phpwrapper");
Expand Down

0 comments on commit 3954252

Please sign in to comment.