2020-09-04 04:23:00 +01:00
|
|
|
pub const have_llvm = true;
|
2021-09-01 06:50:10 +01:00
|
|
|
pub const llvm_has_m68k = false;
|
|
|
|
pub const llvm_has_csky = false;
|
|
|
|
pub const llvm_has_arc = false;
|
2020-12-08 00:23:17 +00:00
|
|
|
pub const version: [:0]const u8 = "@ZIG_VERSION@";
|
2021-06-13 20:27:27 +01:00
|
|
|
pub const semver = @import("std").SemanticVersion.parse(version) catch unreachable;
|
2021-03-21 09:56:41 +00:00
|
|
|
pub const enable_logging: bool = @ZIG_ENABLE_LOGGING_BOOL@;
|
2021-10-14 12:50:10 +01:00
|
|
|
pub const enable_link_snapshots: bool = false;
|
2020-08-18 01:06:23 +01:00
|
|
|
pub const enable_tracy = false;
|
2022-06-09 23:33:04 +01:00
|
|
|
pub const value_tracing = false;
|
delete all stage1 c++ code not directly related to compiling stage2
Deleted 16,000+ lines of c++ code, including:
* an implementation of blake hashing
* the cache hash system
* compiler.cpp
* all the linking code, and everything having to do with building
glibc, musl, and mingw-w64
* much of the stage1 compiler internals got slimmed down since it
now assumes it is always outputting an object file.
More stuff:
* stage1 is now built with a different strategy: we have a tiny
zig0.cpp which is a slimmed down version of what stage1 main.cpp used
to be. Its only purpose is to build stage2 zig code into an object
file, which is then linked by the host build system (cmake) into
stage1. zig0.cpp uses the same C API that stage2 now has access to,
so that stage2 zig code can call into stage1 c++ code.
- stage1.h is
- stage2.h is
- stage1.zig is the main entry point for the Zig/C++
hybrid compiler. It has the functions exported from Zig, called
in C++, and bindings for the functions exported from C++, called
from Zig.
* removed the memory profiling instrumentation from stage1.
Abandon ship!
* Re-added the sections to the README about how to build stage2 and
stage3.
* stage2 now knows as a comptime boolean whether it is being compiled
as part of stage1 or as stage2.
- TODO use this flag to call into stage1 for compiling zig code.
* introduce -fdll-export-fns and -fno-dll-export-fns and clarify
its relationship to link_mode (static/dynamic)
* implement depending on LLVM to detect native target cpu features when
LLVM extensions are enabled and zig lacks CPU feature detection for
that target architecture.
* C importing is broken, will need some stage2 support to function
again.
2020-09-18 02:29:38 +01:00
|
|
|
pub const is_stage1 = true;
|
2020-12-02 21:51:22 +00:00
|
|
|
pub const skip_non_native = false;
|