From 58680cec807bec4cbca35cfad74439a7653040c4 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Sat, 18 Sep 2010 00:09:15 +0000 Subject: Support for building Chrome using Clang. To build, set the clang=1 gyp_define. This patch is the culmination of many months of effort and many patches. It contains the minimal changes to Chrome that are Clang-specific. With this, I can build the "chrome" target. Once this patch is in, we can incrementally fix bits of Chrome and various tests and remove the Clang-specific workarounds. Review URL: http://codereview.chromium.org/522020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59882 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/zygote_main_linux.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/zygote_main_linux.cc') diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc index 20b0352..b4dd7be 100644 --- a/chrome/browser/zygote_main_linux.cc +++ b/chrome/browser/zygote_main_linux.cc @@ -50,9 +50,10 @@ #include "unicode/timezone.h" -#if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) +#if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \ + !defined(__clang__) // The seccomp sandbox is enabled on all ia32 and x86-64 processor as long as -// we aren't using SELinux. +// we aren't using SELinux or clang. #define SECCOMP_SANDBOX #endif -- cgit v1.1