mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:07:57 +00:00
ddc11f8084
This allows it to be instrumented by the sanitizers. Enabled only for MSAN and for Android. Don't pick up Flutter's including no_exceptions in the default config set. TEST=ci Bug: https://github.com/dart-lang/sdk/issues/44312 Bug: https://github.com/dart-lang/sdk/issues/44377 Bug: https://github.com/dart-lang/sdk/issues/43075 Bug: https://github.com/dart-lang/sdk/issues/50248 Bug: https://github.com/dart-lang/sdk/issues/50271 Bug: https://github.com/dart-lang/sdk/issues/52441 Change-Id: If01704ff29569fba8f8181ed31d52faba8d8370f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304824 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
40 lines
1,007 B
Plaintext
40 lines
1,007 B
Plaintext
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/sysroot.gni")
|
|
import("../clang/clang.gni")
|
|
|
|
config("sdk") {
|
|
if (!use_flutter_cxx) {
|
|
ldflags = [
|
|
"-nostdlib++",
|
|
"${clang_prefix}/../lib/libc++.a",
|
|
]
|
|
}
|
|
}
|
|
|
|
# On Mac, this is used for everything except static libraries.
|
|
config("mac_dynamic_flags") {
|
|
ldflags = [
|
|
"-Wl,-search_paths_first",
|
|
"-L.",
|
|
|
|
# Forces shared libraries to search for undefined symbols.
|
|
"-undefined",
|
|
"dynamic_lookup",
|
|
|
|
# Path for loading shared libraries for unbundled binaries.
|
|
"-Wl,-rpath,@loader_path/.",
|
|
|
|
# Path for loading shared libraries for bundled binaries. Get back from
|
|
# Binary.app/Contents/MacOS.
|
|
"-Wl,-rpath,@loader_path/../../..",
|
|
]
|
|
}
|
|
|
|
# On Mac, this is used only for executables.
|
|
config("mac_executable_flags") {
|
|
ldflags = [ "-Wl,-pie" ] # Position independent.
|
|
}
|