summaryrefslogtreecommitdiffstats
path: root/build/internal
diff options
context:
space:
mode:
Diffstat (limited to 'build/internal')
-rw-r--r--build/internal/essential.scons7
-rw-r--r--build/internal/release_defaults.scons6
-rw-r--r--build/internal/release_impl_checksenabled.scons10
3 files changed, 20 insertions, 3 deletions
diff --git a/build/internal/essential.scons b/build/internal/essential.scons
index e2ffc53..56770d9 100644
--- a/build/internal/essential.scons
+++ b/build/internal/essential.scons
@@ -17,10 +17,17 @@ env.Append(
],
LINKFLAGS = [
'$CHROMIUM_LINK_OPT_FLAGS',
+ '$CHROMIUM_INCREMENTAL_FLAGS',
],
)
if env['PLATFORM'] == 'win32':
+ incremental = env.get('INCREMENTAL')
+ if incremental is not None:
+ if incremental:
+ env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL'
+ else:
+ env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL:NO'
env.Append(
ARFLAGS = [
'/ignore:4221',
diff --git a/build/internal/release_defaults.scons b/build/internal/release_defaults.scons
index 612bcbc..5d36cf1 100644
--- a/build/internal/release_defaults.scons
+++ b/build/internal/release_defaults.scons
@@ -21,6 +21,12 @@ env.Append(
)
if env.Bit('windows'):
+ if env.get('INCREMENTAL') is None:
+ # INCREMENTAL was not specified on the command line or in the
+ # external environment; release default is full link.
+ env['INCREMENTAL'] = False
+ env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL:NO'
+
env.Replace(
CHROMIUM_CC_OPT_FLAGS = [
'/O2', # VCCLCompilerTool.Optimization="2"
diff --git a/build/internal/release_impl_checksenabled.scons b/build/internal/release_impl_checksenabled.scons
index 0bdab12..c0b4993 100644
--- a/build/internal/release_impl_checksenabled.scons
+++ b/build/internal/release_impl_checksenabled.scons
@@ -19,6 +19,13 @@ env.Append(
)
if env.Bit('windows'):
+ env.Replace(
+ CHROMIUM_LINK_OPT_FLAGS = [
+ '/OPT:REF', # VCLinkerTool.OptimizeReferences="2"
+ '/OPT:NOICF', # VCLinkerTool.EnableCOMDATFolding="2"
+ '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1"
+ ],
+ ),
env.Append(
CCFLAGS = [
'/Oy-',
@@ -26,8 +33,5 @@ if env.Bit('windows'):
],
LINKFLAGS = [
'/INCREMENTAL:NO', # VCLinkerTool.LinkIncremental="1"
- '/OPT:REF', # VCLinkerTool.OptimizeReferences="2"
- '/OPT:ICF', # VCLinkerTool.EnableCOMDATFolding="2"
- '/OPT:NOWIN98', # VCLinkerTool.OptimizeForWindows98="1"
],
)