diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-03 07:52:06 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-03 18:08:05 -0600 |
| commit | b09f5251cb2b15bbf59064671ce7aa19f01b66c7 (patch) | |
| tree | 8f9b51617dd6213990cc4a31c817d84334960101 | |
| parent | d9e89db78284fc1a9f0aa1ed86d076f50c58c1f2 (diff) | |
Makefile: disable lto for debug builds
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | nix/flake.nix | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -18,8 +18,13 @@ ifdef FASTER_IS_BETTER DISABLE_COV := 1 DISABLE_RAND := 1 DISABLE_TRACE := 1 + + CXXFLAGS += -O3 -flto + LDFLAGS += -O3 -flto endif +export CXXFLAGS LDFLAGS + X_MODE := $(if $(DISABLE_RAND),fast,unique) VFLAGS ?= \ diff --git a/nix/flake.nix b/nix/flake.nix index 25eac80..6dabcd0 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -143,8 +143,8 @@ shellHook = '' export CROSS_COMPILE=arm-unknown-linux-gnueabi- export MAKEFLAGS="AR=gcc-ar" - export CXXFLAGS="-O3 -flto $(pkg-config --cflags sdl2 ncursesw)" - export LDFLAGS="-O3 -flto $(pkg-config --libs sdl2 ncursesw)" + export CXXFLAGS="$(pkg-config --cflags sdl2 ncursesw)" + export LDFLAGS="$(pkg-config --libs sdl2 ncursesw)" # <https://discourse.nixos.org/t/fonts-in-nix-installed-packages-on-a-non-nixos-system/5871/7> export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive" |
