dart-sdk/build/config
Ryan Macnak e31c3713bf Reland "[build, vm] Access TLS with less code."
- Avoid TLS initialization checks by using inline initialization.
 - Avoid global offset table indirection by reducing -fPIC to -fPIE.

out/ReleaseXARM64/exe.stripped/dart_precompiled_runtime
11137992 -> 11274776 (-1.21%)

We still need -fPIC in some places because we build a few shared libraries for FFI, so copy some of Fuchsia's GN setup to use -fPIE or -fPIC as appropriate.

Account for older gcc that does not default to -fpie.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/51602
Change-Id: I85072153cb1aef9047c1adbf36c7496fbeb11e10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286221
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-03-02 23:07:16 +00:00
..
android Reland "[build] Fix Android build for ARM64 Mac." 2022-05-10 16:11:53 +00:00
clang [build] Re-add linker flags to create empty section in AOT runtime. 2022-10-07 09:26:18 +00:00
compiler Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
gcc Spelling build 2023-01-23 08:56:14 +00:00
linux [build] Statically link libstd++ and libgcc when using clang. 2023-02-14 19:25:30 +00:00
mac Roll Clang from 026df9514ead to ca6196138012. 2023-01-10 17:20:04 +00:00
sanitizers [VM] Add dependencies needed to generate protozero code 2023-01-26 16:07:22 +00:00
templates Remove use of set_sources_assignment_filter 2020-10-08 20:08:59 +00:00
win [build] Toolchain setup for ARM64 Windows. 2022-04-20 17:21:58 +00:00
arm.gni GN: Format more gn files 2016-10-27 04:25:34 -07:00
BUILD.gn Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
BUILDCONFIG.gn Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
host_byteorder.gni Reland "[vm] Finish adding support for ECMAScript 2018 features." 2019-04-29 09:11:48 +00:00
locales.gni Add a snapshot of flutter/engine/src/build to our sdk 2016-07-01 11:09:28 -07:00
sysroot.gni [infra] Support for Alpine Linux Sysroot 2023-01-19 10:36:51 +00:00