Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 940530
Collapse All | Expand All

(-)a/build/config/compiler/BUILD.gn (+12 lines)
Lines 202-207 declare_args() { Link Here
202
  simple_template_names = is_clang && !is_nacl && !is_win && !is_apple
202
  simple_template_names = is_clang && !is_nacl && !is_win && !is_apple
203
}
203
}
204
204
205
declare_args() {
206
  custom_cflags = []
207
  custom_rustflags = []
208
  custom_ldflags = []
209
}
210
205
declare_args() {
211
declare_args() {
206
  # Set to true to use icf, Identical Code Folding.
212
  # Set to true to use icf, Identical Code Folding.
207
  use_icf = (is_posix || is_fuchsia) && !is_debug && !using_sanitizer &&
213
  use_icf = (is_posix || is_fuchsia) && !is_debug && !using_sanitizer &&
Lines 3105-3107 config("cet_shadow_stack") { Link Here
3105
    ldflags = [ "/CETCOMPAT" ]
3111
    ldflags = [ "/CETCOMPAT" ]
3106
  }
3112
  }
3107
}
3113
}
3114
3115
config("custom_flags") {
3116
  cflags = custom_cflags
3117
  rustflags = custom_rustflags
3118
  ldflags = custom_ldflags
3119
}
(-)a/build/config/BUILDCONFIG.gn (+2 lines)
Lines 406-411 if (is_debug) { Link Here
406
  default_compiler_configs += [ "//build/config:release" ]
406
  default_compiler_configs += [ "//build/config:release" ]
407
}
407
}
408
408
409
default_compiler_configs += [ "//build/config/compiler:custom_flags" ]
410
409
# Static libraries and source sets use only the compiler ones.
411
# Static libraries and source sets use only the compiler ones.
410
set_defaults("static_library") {
412
set_defaults("static_library") {
411
  configs = default_compiler_configs
413
  configs = default_compiler_configs

Return to bug 940530