mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
08b51223a9
Just like C++14 sized deallocation support, we don't want to support this. We shouldn't be using `new` on over-aligned types anyway. Differential Revision: https://phabricator.services.mozilla.com/D41819 --HG-- extra : moz-landing-system : lando
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# We support C++14, but we don't want to enable the sized deallocation
|
|
# facilities in C++14 yet.
|
|
check_and_add_gcc_flag('-fno-sized-deallocation', compiler=cxx_compiler)
|
|
# Likewise for C++17 and aligned allocation. It's not immediately obvious
|
|
# from the clang and GCC documentation, but they both support this.
|
|
check_and_add_gcc_flag('-fno-aligned-new', compiler=cxx_compiler)
|
|
|
|
# Please keep these last in this file.
|
|
add_old_configure_assignment('_COMPILATION_CFLAGS', compilation_flags.cflags)
|
|
add_old_configure_assignment(
|
|
'_COMPILATION_CXXFLAGS', compilation_flags.cxxflags)
|
|
add_old_configure_assignment(
|
|
'_COMPILATION_HOST_CFLAGS', compilation_flags.host_cflags)
|
|
add_old_configure_assignment(
|
|
'_COMPILATION_HOST_CXXFLAGS', compilation_flags.host_cxxflags)
|
|
|
|
|
|
@depends(rust_compile_flags, rust_warning_flags)
|
|
def rust_flags(compile_flags, warning_flags):
|
|
return compile_flags + warning_flags
|
|
|
|
|
|
set_config('MOZ_RUST_DEFAULT_FLAGS', rust_flags)
|