mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
Update BUILD.gn
This commit is contained in:
parent
a419c33ee1
commit
d11162ebaf
1 changed files with 12 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2022 The Chromium Authors and Alex313031. All rights reserved.
|
||||
# Copyright (c) 2023 The Chromium Authors and Alex313031. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
|
@ -89,7 +89,7 @@ config("compiler") {
|
|||
|
||||
cflags += [
|
||||
# Work around crbug.com/526851, bug in VS 2015 RTM compiler.
|
||||
"/Zc:sizedDealloc-",
|
||||
# "/Zc:sizedDealloc-",
|
||||
]
|
||||
|
||||
if (is_clang) {
|
||||
|
@ -135,11 +135,14 @@ config("compiler") {
|
|||
"/O3",
|
||||
"-mavx",
|
||||
"-maes",
|
||||
"-mvaes",
|
||||
"-mpclmul",
|
||||
"/clang:-O3",
|
||||
"/clang:-mavx",
|
||||
"/clang:-maes",
|
||||
"/clang:-mvaes",
|
||||
"/clang:-mpclmul",
|
||||
"-Xclang", "-O3",
|
||||
"/arch:AVX",
|
||||
"-Wno-unused-command-line-argument",
|
||||
]
|
||||
}
|
||||
|
@ -205,7 +208,7 @@ config("compiler") {
|
|||
if (use_lld) {
|
||||
# String tail merging leads to smaller binaries, but they don't compress
|
||||
# as well, leading to increased mini_installer size (crbug.com/838449).
|
||||
ldflags += [ "/OPT:NOLLDTAILMERGE" ]
|
||||
# ldflags += [ "/OPT:NOLLDTAILMERGE" ]
|
||||
}
|
||||
|
||||
# TODO(siggi): Is this of any use anymore?
|
||||
|
@ -213,7 +216,7 @@ config("compiler") {
|
|||
# PDB file by about 5%) but does not otherwise alter the output binary. It
|
||||
# is enabled opportunistically for builds where it is not prohibited (not
|
||||
# supported when incrementally linking, or using /debug:fastlink).
|
||||
ldflags += [ "/PROFILE" ]
|
||||
# ldflags += [ "/PROFILE" ]
|
||||
}
|
||||
|
||||
# arflags apply only to static_libraries. The normal linker configs are only
|
||||
|
@ -544,14 +547,14 @@ config("static_crt") {
|
|||
# This is appended to the subsystem to specify a minimum version.
|
||||
if (current_cpu == "x64") {
|
||||
# The number after the comma is the minimum required OS version.
|
||||
# 5.02 = Windows Server 2003.
|
||||
subsystem_version_suffix = ",5.02"
|
||||
# 5.2 = Windows Server 2003.
|
||||
subsystem_version_suffix = ",5.2"
|
||||
} else if (current_cpu == "arm64") {
|
||||
# Windows ARM64 requires Windows 10.
|
||||
subsystem_version_suffix = ",10.0"
|
||||
} else {
|
||||
# 5.01 = Windows XP.
|
||||
subsystem_version_suffix = ",5.01"
|
||||
# 5.1 = Windows XP.
|
||||
subsystem_version_suffix = ",5.1"
|
||||
}
|
||||
|
||||
config("console") {
|
||||
|
|
Loading…
Reference in a new issue