mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:41:41 +00:00
73f6d15665
This new version has functional TSAN. Bug: https://github.com/dart-lang/sdk/issues/39611 Change-Id: Ia9835fb6ad6de73f43faea695f893ed0c62fffa7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136380 Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Alexander Thomas <athom@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
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") {
|
|
common_flags = [ "-stdlib=libc++" ]
|
|
|
|
cflags = common_flags
|
|
ldflags = common_flags + [
|
|
"-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.
|
|
}
|