[flags] # Default build flags applied to all packages via /etc/depot.d/build.toml # Compiler selection cc = "gcc" # Default CFLAGS cflags = ["-O2"] cflags += ["-pipe"] # Optional install directory overrides for supported builders #bindir = "/usr/bin" #libdir = "/usr/lib" #sysconfdir = "/etc" # Default LDFLAGS ldflags = ["-Wl,-O1"] # Default LTOFLAGS and automatic injection into CFLAGS/CXXFLAGS/LDFLAGS. ltoflags = ["-flto=auto"] # Rust-specific LTO flags appended only to RUSTFLAGS when use_lto is enabled. #RUSTLTOFLAGS = ["-Clinker-plugin-lto"] use_lto = true # CARCH short name (can be overridden per-package) carch = "x86_64" # Example of appending per-package cflags: (will be exposed as build.cflags appends) # cflags += ["-march=native"]