Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 904249 Details for
Bug 940530
www-client/chromium: add ability to specify custom *FLAGS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add ability to specify custom *FLAGS when building Chromium
9002-add-ability-to-specify-custom-flags.patch (text/plain), 1.40 KB, created by
Benjamino Masyura
on 2024-09-30 13:16:21 UTC
(
hide
)
Description:
Add ability to specify custom *FLAGS when building Chromium
Filename:
MIME Type:
Creator:
Benjamino Masyura
Created:
2024-09-30 13:16:21 UTC
Size:
1.40 KB
patch
obsolete
>From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 >From: Benjamino Masyura <benjama@keemail.me> >Date: Mon, 17 Sep 2001 00:00:00 +0000 >Subject: [PATCH] Add ability to specify custom *flags to GN > >diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn >index 45086d6..2ff1293 100644 >--- a/build/config/compiler/BUILD.gn >+++ b/build/config/compiler/BUILD.gn >@@ -202,6 +202,12 @@ declare_args() { > simple_template_names = is_clang && !is_nacl && !is_win && !is_apple > } > >+declare_args() { >+ custom_cflags = [] >+ custom_rustflags = [] >+ custom_ldflags = [] >+} >+ > declare_args() { > # Set to true to use icf, Identical Code Folding. > use_icf = (is_posix || is_fuchsia) && !is_debug && !using_sanitizer && >@@ -3105,3 +3111,9 @@ config("cet_shadow_stack") { > ldflags = [ "/CETCOMPAT" ] > } > } >+ >+config("custom_flags") { >+ cflags = custom_cflags >+ rustflags = custom_rustflags >+ ldflags = custom_ldflags >+} >diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn >index d1a6654..46a63f3 100644 >--- a/build/config/BUILDCONFIG.gn >+++ b/build/config/BUILDCONFIG.gn >@@ -406,6 +406,8 @@ if (is_debug) { > default_compiler_configs += [ "//build/config:release" ] > } > >+default_compiler_configs += [ "//build/config/compiler:custom_flags" ] >+ > # Static libraries and source sets use only the compiler ones. > set_defaults("static_library") { > configs = default_compiler_configs
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 940530
: 904249