Lines 95-111
if CONFIG['CC_TYPE'] in ('clang', 'gcc')
Link Here
|
95 |
CXXFLAGS += ['-Wno-shadow'] |
95 |
CXXFLAGS += ['-Wno-shadow'] |
96 |
SOURCES['../chromium/sandbox/linux/services/syscall_wrappers.cc'].flags += [ |
96 |
SOURCES['../chromium/sandbox/linux/services/syscall_wrappers.cc'].flags += [ |
97 |
'-Wno-empty-body', |
97 |
'-Wno-empty-body', |
98 |
] |
98 |
] |
99 |
|
99 |
|
100 |
# gcc lto likes to put the top level asm in syscall.cc in a different partition |
100 |
# gcc lto likes to put the top level asm in syscall.cc in a different partition |
101 |
# from the function using it which breaks the build. Work around that by |
101 |
# from the function using it which breaks the build. Work around that by |
102 |
# forcing there to be only one partition. |
102 |
# forcing there to be only one partition. |
103 |
for f in CONFIG['OS_CXXFLAGS']: |
103 |
for f in CONFIG['MOZ_LTO_CFLAGS']: |
104 |
if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang': |
104 |
if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang': |
105 |
LDFLAGS += ['--param', 'lto-partitions=1'] |
105 |
LDFLAGS += ['--param', 'lto-partitions=1'] |
106 |
|
106 |
|
107 |
DEFINES['NS_NO_XPCOM'] = True |
107 |
DEFINES['NS_NO_XPCOM'] = True |
108 |
DisableStlWrapping() |
108 |
DisableStlWrapping() |
109 |
|
109 |
|
110 |
LOCAL_INCLUDES += ['/security/sandbox/linux'] |
110 |
LOCAL_INCLUDES += ['/security/sandbox/linux'] |
111 |
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim'] |
111 |
LOCAL_INCLUDES += ['/security/sandbox/chromium-shim'] |