diff options
author | mcgrathr@chromium.org <mcgrathr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-12 00:16:00 +0000 |
---|---|---|
committer | mcgrathr@chromium.org <mcgrathr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-12 00:16:00 +0000 |
commit | 10e91704461a3640dc931f468bed25c78fd82e34 (patch) | |
tree | af5f82356745cbb9c505ab04b5057f0979e688f4 /chrome/nacl.gypi | |
parent | 865174758442049f9bb808e63f6aa93366226eea (diff) | |
download | chromium_src-10e91704461a3640dc931f468bed25c78fd82e34.zip chromium_src-10e91704461a3640dc931f468bed25c78fd82e34.tar.gz chromium_src-10e91704461a3640dc931f468bed25c78fd82e34.tar.bz2 |
Fix Clang build after r109734
The Clang <limits.h> doesn't behave normally under -ffreestanding,
but we needed that flag for another reason. So explicitly undefine
and redefine __STDC_HOSTED__ even though we're using -ffreestanding.
TBR=nduca@google.com
BUG= none
TEST= none
Review URL: http://codereview.chromium.org/8538030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109735 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl.gypi')
-rw-r--r-- | chrome/nacl.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi index 79225e2..3474b2d 100644 --- a/chrome/nacl.gypi +++ b/chrome/nacl.gypi @@ -298,6 +298,8 @@ # Prevent llvm-opt from replacing my_bzero with a call # to memset '-ffreestanding', + # But make its <limits.h> still work! + '-U__STDC_HOSTED__', '-D__STDC_HOSTED__=1', ], }], ], |