5c33a36100
- Introduced a new method `apply_default_string` to streamline the application of default values for string fields in build flags. - Enhanced `apply_flags_table` to utilize the new method for setting various build flags, improving code readability and maintainability. - Added support for additional build flags: `fuse_ld`, `ranlib`, `strip`, `nm`, `objcopy`, `objdump`, and `readelf`. - Implemented a new command `set` to manage tool aliases for compilers, linkers, and shells, allowing users to set preferred tools in the build environment. - Improved error handling and validation for tool alias configuration, ensuring that existing non-symlink files are not replaced. - Added tests to verify the correct behavior of tool alias management and build flag application.
40 lines
1.0 KiB
TOML
40 lines
1.0 KiB
TOML
# Example per-user configuration (~/.config/depot.toml)
|
|
#
|
|
# Use this file for local preferences that should not affect other users on the
|
|
# same machine. System-wide defaults still come from /etc/depot.toml and
|
|
# /etc/depot.d/*.toml unless you override them here.
|
|
|
|
[build]
|
|
# A user-local prefix is useful when you are building software for your own
|
|
# account instead of assembling system packages.
|
|
prefix = "/usr/local"
|
|
|
|
# Personal toolchain preference.
|
|
# tool_dir = "/usr/bin"
|
|
cc = "clang"
|
|
# cxx = "$TOOL_DIR/clang++"
|
|
# ranlib = "$TOOL_DIR/ranlib"
|
|
# strip = "$TOOL_DIR/strip"
|
|
|
|
[build.flags]
|
|
# User-local compiler preferences.
|
|
cflags = ["-O2"]
|
|
cflags += ["-g"]
|
|
carch = "x86_64"
|
|
|
|
# Examples:
|
|
# cxxflags = ["-O2", "-g"]
|
|
# ldflags = ["-Wl,-O1"]
|
|
# fuse_ld = "lld"
|
|
# makeflags = "-j4"
|
|
|
|
# Optional install directory overrides for supported builders.
|
|
# bindir = "/usr/local/bin"
|
|
# sbindir = "/usr/local/sbin"
|
|
# libdir = "/usr/local/lib"
|
|
# datadir = "/usr/local/share"
|
|
|
|
[install]
|
|
# Install test dependencies automatically for your own source builds.
|
|
test_deps = false
|