diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-08-03 08:05:00 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-03 09:37:10 -0700 |
| commit | 88fb4dab81ab67b66600868f9a72892ed77bbb21 (patch) | |
| tree | 80a8c9772f26a54509f3b3834f1f21d82f1eb03e /lib/std/Build/Step/Compile.zig | |
| parent | 22662773b2cb0942d5036110eb8db34b25c84c40 (diff) | |
| download | zig-88fb4dab81ab67b66600868f9a72892ed77bbb21.tar.gz zig-88fb4dab81ab67b66600868f9a72892ed77bbb21.zip | |
std.target: mark helper functions inline
This was discussed in #16597. It makes sense for most of the functions
in this file to be marked inline: many are simple helper functions so
inlining is likely a strict win, and having the return values be
comptime-known may improve userspace code in some cases by preventing it
from unintentionally checking properties of the target at runtime.
This changeset is somewhat conservative: the functions marked inline are
generally returning booleans or simple integers, and many are simple
one-line checks.
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
0 files changed, 0 insertions, 0 deletions
