aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-30 12:43:10 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-30 12:50:15 -0700
commit7377dce368090e3c49a15d8996cc812adadd3d43 (patch)
tree6d9714e54fa2223aa6842d8d496d5f3dadd360e8 /src/Module.zig
parent65d37239682b6418b6dd25f07187ae99088e67f0 (diff)
downloadzig-7377dce368090e3c49a15d8996cc812adadd3d43.tar.gz
zig-7377dce368090e3c49a15d8996cc812adadd3d43.zip
avoid exposing supportsTailCall in the standard library
This is problematic because in practice it depends on whether the compiler backend supports it too, as evidenced by the TODO comment about LLVM not supporting some architectures that in fact do support tail calls. Instead this logic is organized strategically in src/target.zig, part of the internal compiler source code, and the behavior tests in question duplicate some logic for deciding whether to proceed with the test. The proper place to expose this flag is in `@import("builtin")` - the generated source file - so that third party compilers can advertise whether they support tail calls.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions