Commit 33c594d9 authored by oshima's avatar oshima Committed by Commit bot

Enable large file support on linux/chromeos

Original CL (https://codereview.chromium.org/1059613002) works only debug build. Instead of defining two places, I think this is better.

BUG=471407

Review URL: https://codereview.chromium.org/1126013005

Cr-Commit-Position: refs/heads/master@{#330043}
parent 592eb864
...@@ -3606,6 +3606,13 @@ ...@@ -3606,6 +3606,13 @@
], ],
}, },
}], }],
['os_posix==1 and OS=="linux"', {
'defines': [
'_LARGEFILE_SOURCE',
'_LARGEFILE64_SOURCE',
'_FILE_OFFSET_BITS=64',
],
}],
['os_posix==1 and OS!="mac" and OS!="ios"', { ['os_posix==1 and OS!="mac" and OS!="ios"', {
'target_defaults': { 'target_defaults': {
# Enable -Werror by default, but put it in a variable so it can # Enable -Werror by default, but put it in a variable so it can
...@@ -3693,12 +3700,6 @@ ...@@ -3693,12 +3700,6 @@
'-fomit-frame-pointer', '-fomit-frame-pointer',
], ],
}], }],
['OS!="android"', {
'defines': [
'_LARGEFILE_SOURCE',
'_LARGEFILE64_SOURCE',
],
}],
['OS=="linux" and target_arch=="ia32"', { ['OS=="linux" and target_arch=="ia32"', {
'ldflags': [ 'ldflags': [
'-Wl,--no-as-needed', '-Wl,--no-as-needed',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment