mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
14 lines
448 B
Plaintext
14 lines
448 B
Plaintext
dnl Add compiler specific options
|
|
|
|
AC_DEFUN([MOZ_COMPILER_OPTS],
|
|
[
|
|
if test "$CLANG_CXX"; then
|
|
## We disable return-type-c-linkage because jsval is defined as a C++ type but is
|
|
## returned by C functions. This is possible because we use knowledge about the ABI
|
|
## to typedef it to a C type with the same layout when the headers are included
|
|
## from C.
|
|
_WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-return-type-c-linkage"
|
|
fi
|
|
])
|
|
|