brew style

This commit is contained in:
Lukas Oberhuber 2022-07-26 19:28:30 +01:00
parent c442250304
commit 215e545660
10 changed files with 16 additions and 16 deletions

View File

@ -93,10 +93,10 @@ class Build
deps.each(&:modify_build_environment)
else
ENV.setup_build_environment(
formula: formula,
cc: args.cc,
build_bottle: args.build_bottle?,
bottle_arch: args.bottle_arch,
formula: formula,
cc: args.cc,
build_bottle: args.build_bottle?,
bottle_arch: args.bottle_arch,
debug_symbols: args.debug_symbols?,
)
reqs.each do |req|

View File

@ -93,8 +93,8 @@ module Homebrew
}],
[:switch, "--debug-symbols", {
depends_on: "--build-from-source",
description: "Generates debugging symbols during build. Source will be in temporary directory " \
"which is retained. (see --keep-tmp)",
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
"(see --keep-tmp)",
}],
[:switch, "--build-bottle", {
description: "Prepare the formula for eventual bottling during installation, skipping any " \

View File

@ -59,8 +59,8 @@ module Homebrew
}],
[:switch, "--debug-symbols", {
depends_on: "--build-from-source",
description: "Generates debugging symbols during build. Source will be in temporary directory " \
"which is retained. (see --keep-tmp)",
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
"(see --keep-tmp)",
}],
[:switch, "--display-times", {
env: :display_install_times,

View File

@ -70,8 +70,8 @@ module Homebrew
}],
[:switch, "--debug-symbols", {
depends_on: "--build-from-source",
description: "Generates debugging symbols during build. Source will be in temporary directory " \
"which is retained. (see --keep-tmp)",
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
"(see --keep-tmp)",
}],
[:switch, "--display-times", {
env: :display_install_times,

View File

@ -54,7 +54,7 @@ module EnvActivation
T.cast(tmp_env, T.any(Superenv, Stdenv))
.setup_build_environment(
cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
replace(tmp_env)

View File

@ -13,7 +13,7 @@ module Stdenv
generic_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle,
bottle_arch: bottle_arch, testing_formula: testing_formula,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
prepend_path "CPATH", HOMEBREW_PREFIX/"include"

View File

@ -26,7 +26,7 @@ module Superenv
generic_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle,
bottle_arch: bottle_arch, testing_formula: testing_formula,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2"
self["HOMEBREW_DYNAMIC_LINKER"] = determine_dynamic_linker_path

View File

@ -15,7 +15,7 @@ module SharedEnvExtension
generic_shared_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle,
bottle_arch: bottle_arch, testing_formula: testing_formula,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
# Normalise the system Perl version used, where multiple may be available

View File

@ -21,7 +21,7 @@ module Stdenv
generic_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle,
bottle_arch: bottle_arch, testing_formula: testing_formula,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
append "LDFLAGS", "-Wl,-headerpad_max_install_names"

View File

@ -110,7 +110,7 @@ module Superenv
generic_setup_build_environment(
formula: formula, cc: cc, build_bottle: build_bottle,
bottle_arch: bottle_arch, testing_formula: testing_formula,
debug_symbols: debug_symbols,
debug_symbols: debug_symbols
)
# Filter out symbols known not to be defined since GNU Autotools can't