mirror of
https://github.com/dart-lang/sdk
synced 2024-07-05 09:20:04 +00:00
GN: Add back -fPIC for a few things
Review-Url: https://codereview.chromium.org/2640923005 .
This commit is contained in:
parent
17fa9d47b2
commit
5580693fa8
|
@ -299,6 +299,17 @@ config("compiler") {
|
|||
]
|
||||
}
|
||||
|
||||
# We need -fPIC:
|
||||
# 1. On ARM and MIPS for tcmalloc.
|
||||
# 2. On Android.
|
||||
# 3. When using the sanitizers.
|
||||
# Otherwise there is a performance hit, in particular on ia32.
|
||||
if (is_android || is_asan || is_lsan || is_msan || is_tsan ||
|
||||
(is_linux && (current_cpu == "arm" || current_cpu == "mipsel"))) {
|
||||
cflags += [ "-fPIC" ]
|
||||
ldflags += [ "-fPIC" ]
|
||||
}
|
||||
|
||||
# Linux-specific compiler flags setup.
|
||||
# ------------------------------------
|
||||
if (is_linux) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user