mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
9df6656aa9
To avoid these flags being applied to unexpected build rules, we separate them out into a separate config that is then pulled in explicitly in the `dart_precompiled_runtime{,_product}` executable rules. Only those two executables need the additional empty section: the product version because it becomes `dartaotruntime` in the SDK bundle, and the non-product version because some of our tests build standalone executables using it. The linker flags were originally removed due to https://github.com/flutter/flutter/issues/112687. With the recent removal of bitcode support from Flutter (see https://github.com/flutter/flutter/issues/107883), I can build the `ios_release` target locally without any issue. This also reverts the clang DEPS changes from CL 256208 (again). TEST=pkg/dartdev/test/commands/compile_test Bug: https://github.com/dart-lang/sdk/issues/49783 Cq-Include-Trybots: luci.dart.try:analyzer-mac-release-try,dart-sdk-mac-arm64-try,dart-sdk-mac-try,pkg-mac-release-arm64-try,pkg-mac-release-try,vm-kernel-precomp-mac-product-x64-try,vm-kernel-precomp-nnbd-mac-release-arm64-try Change-Id: Ie46402ec2eeda23109247eb9d7a64935ec2052cb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262429 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
21 lines
509 B
C++
21 lines
509 B
C++
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "vm/malloc_hooks.h"
|
|
|
|
#include "vm/globals.h"
|
|
|
|
#if defined(HOST_ARCH_IA32)
|
|
|
|
namespace dart {
|
|
|
|
#if defined(DEBUG)
|
|
const intptr_t kSkipCount = 7;
|
|
#elif !(defined(PRODUCT) || defined(DEBUG))
|
|
const intptr_t kSkipCount = 6;
|
|
#endif
|
|
|
|
} // namespace dart
|
|
|
|
#endif // defined(HOST_ARCH_IA32)
|