diff options
Diffstat (limited to 'rust/qmk-hid-com/src_c/build.sh')
-rwxr-xr-x | rust/qmk-hid-com/src_c/build.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rust/qmk-hid-com/src_c/build.sh b/rust/qmk-hid-com/src_c/build.sh new file mode 100755 index 0000000..de615f8 --- /dev/null +++ b/rust/qmk-hid-com/src_c/build.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env sh + +# Source: https://mesonbuild.com/Builtin-options.html +# Use gcc's wrappers to support lto +CC="gcc" AR="gcc-ar" RANLIB="gcc-ranlib" meson setup build_release \ + -Dbuildtype=release \ + -Ddebug=false \ + -Doptimization=3 \ + -Dstrip=true \ + -Dwarning_level=everything \ + -Dwerror=true \ + -Db_lundef=true \ + -Db_lto=true \ + -Db_ndebug=false \ + -Db_pgo=generate \ + -Db_staticpic=true \ + -Db_pie=false \ + -Dc_std=gnu2x |