brew style
This commit is contained in:
parent
c442250304
commit
215e545660
@ -93,10 +93,10 @@ class Build
|
|||||||
deps.each(&:modify_build_environment)
|
deps.each(&:modify_build_environment)
|
||||||
else
|
else
|
||||||
ENV.setup_build_environment(
|
ENV.setup_build_environment(
|
||||||
formula: formula,
|
formula: formula,
|
||||||
cc: args.cc,
|
cc: args.cc,
|
||||||
build_bottle: args.build_bottle?,
|
build_bottle: args.build_bottle?,
|
||||||
bottle_arch: args.bottle_arch,
|
bottle_arch: args.bottle_arch,
|
||||||
debug_symbols: args.debug_symbols?,
|
debug_symbols: args.debug_symbols?,
|
||||||
)
|
)
|
||||||
reqs.each do |req|
|
reqs.each do |req|
|
||||||
|
|||||||
@ -93,8 +93,8 @@ module Homebrew
|
|||||||
}],
|
}],
|
||||||
[:switch, "--debug-symbols", {
|
[:switch, "--debug-symbols", {
|
||||||
depends_on: "--build-from-source",
|
depends_on: "--build-from-source",
|
||||||
description: "Generates debugging symbols during build. Source will be in temporary directory " \
|
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
|
||||||
"which is retained. (see --keep-tmp)",
|
"(see --keep-tmp)",
|
||||||
}],
|
}],
|
||||||
[:switch, "--build-bottle", {
|
[:switch, "--build-bottle", {
|
||||||
description: "Prepare the formula for eventual bottling during installation, skipping any " \
|
description: "Prepare the formula for eventual bottling during installation, skipping any " \
|
||||||
|
|||||||
@ -59,8 +59,8 @@ module Homebrew
|
|||||||
}],
|
}],
|
||||||
[:switch, "--debug-symbols", {
|
[:switch, "--debug-symbols", {
|
||||||
depends_on: "--build-from-source",
|
depends_on: "--build-from-source",
|
||||||
description: "Generates debugging symbols during build. Source will be in temporary directory " \
|
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
|
||||||
"which is retained. (see --keep-tmp)",
|
"(see --keep-tmp)",
|
||||||
}],
|
}],
|
||||||
[:switch, "--display-times", {
|
[:switch, "--display-times", {
|
||||||
env: :display_install_times,
|
env: :display_install_times,
|
||||||
|
|||||||
@ -70,8 +70,8 @@ module Homebrew
|
|||||||
}],
|
}],
|
||||||
[:switch, "--debug-symbols", {
|
[:switch, "--debug-symbols", {
|
||||||
depends_on: "--build-from-source",
|
depends_on: "--build-from-source",
|
||||||
description: "Generates debugging symbols during build. Source will be in temporary directory " \
|
description: "Generate debug symbols on build. Source will be retained in a temporary directory. " \
|
||||||
"which is retained. (see --keep-tmp)",
|
"(see --keep-tmp)",
|
||||||
}],
|
}],
|
||||||
[:switch, "--display-times", {
|
[:switch, "--display-times", {
|
||||||
env: :display_install_times,
|
env: :display_install_times,
|
||||||
|
|||||||
@ -54,7 +54,7 @@ module EnvActivation
|
|||||||
T.cast(tmp_env, T.any(Superenv, Stdenv))
|
T.cast(tmp_env, T.any(Superenv, Stdenv))
|
||||||
.setup_build_environment(
|
.setup_build_environment(
|
||||||
cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
|
cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch,
|
||||||
debug_symbols: debug_symbols,
|
debug_symbols: debug_symbols
|
||||||
)
|
)
|
||||||
replace(tmp_env)
|
replace(tmp_env)
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ module Stdenv
|
|||||||
generic_setup_build_environment(
|
generic_setup_build_environment(
|
||||||
formula: formula, cc: cc, build_bottle: build_bottle,
|
formula: formula, cc: cc, build_bottle: build_bottle,
|
||||||
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
||||||
debug_symbols: debug_symbols,
|
debug_symbols: debug_symbols
|
||||||
)
|
)
|
||||||
|
|
||||||
prepend_path "CPATH", HOMEBREW_PREFIX/"include"
|
prepend_path "CPATH", HOMEBREW_PREFIX/"include"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ module Superenv
|
|||||||
generic_setup_build_environment(
|
generic_setup_build_environment(
|
||||||
formula: formula, cc: cc, build_bottle: build_bottle,
|
formula: formula, cc: cc, build_bottle: build_bottle,
|
||||||
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
||||||
debug_symbols: debug_symbols,
|
debug_symbols: debug_symbols
|
||||||
)
|
)
|
||||||
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2"
|
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2"
|
||||||
self["HOMEBREW_DYNAMIC_LINKER"] = determine_dynamic_linker_path
|
self["HOMEBREW_DYNAMIC_LINKER"] = determine_dynamic_linker_path
|
||||||
|
|||||||
@ -15,7 +15,7 @@ module SharedEnvExtension
|
|||||||
generic_shared_setup_build_environment(
|
generic_shared_setup_build_environment(
|
||||||
formula: formula, cc: cc, build_bottle: build_bottle,
|
formula: formula, cc: cc, build_bottle: build_bottle,
|
||||||
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
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
|
# Normalise the system Perl version used, where multiple may be available
|
||||||
|
|||||||
@ -21,7 +21,7 @@ module Stdenv
|
|||||||
generic_setup_build_environment(
|
generic_setup_build_environment(
|
||||||
formula: formula, cc: cc, build_bottle: build_bottle,
|
formula: formula, cc: cc, build_bottle: build_bottle,
|
||||||
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
||||||
debug_symbols: debug_symbols,
|
debug_symbols: debug_symbols
|
||||||
)
|
)
|
||||||
|
|
||||||
append "LDFLAGS", "-Wl,-headerpad_max_install_names"
|
append "LDFLAGS", "-Wl,-headerpad_max_install_names"
|
||||||
|
|||||||
@ -110,7 +110,7 @@ module Superenv
|
|||||||
generic_setup_build_environment(
|
generic_setup_build_environment(
|
||||||
formula: formula, cc: cc, build_bottle: build_bottle,
|
formula: formula, cc: cc, build_bottle: build_bottle,
|
||||||
bottle_arch: bottle_arch, testing_formula: testing_formula,
|
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
|
# Filter out symbols known not to be defined since GNU Autotools can't
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user