diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-09 00:05:38 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-09 09:28:05 -0700 |
| commit | 193ad413f03322b047bbfe17c4b2b368ba6bc097 (patch) | |
| tree | 5be27a318191ad64cb96e6702e55326f4255f182 /src/main.cpp | |
| parent | c99e34a00e1e839effbc8b257a400eb3b643fa12 (diff) | |
| download | zig-193ad413f03322b047bbfe17c4b2b368ba6bc097.tar.gz zig-193ad413f03322b047bbfe17c4b2b368ba6bc097.zip | |
stage2: compiling C objects with clang
* add target_util.zig which has ported code from src/target.cpp
* Module gains an arena that owns memory used during initialization
that has the same lifetime as the Module. Useful for constructing
file paths and lists of strings that have mixed lifetimes.
- The Module memory itself is allocated in this arena. init/deinit
are modified to be create/destroy.
- root_name moves to the arena and no longer needs manual free
* implement the ability to invoke `zig clang` as a subprocess
- there are lots of TODOs that should be solved before merging
* Module now requires a Random object and zig_lib_dir
* Module now requires a path to its own executable or any zig
executable that can do `zig clang`.
* Wire up more CLI options.
* Module creates "zig-cache" directory and "tmp" and "o" subdirectories
("h" is created by the cache_hash)
* stubbed out some of the things linker code needs to do with TODO
prints
* delete dead code for computing compiler id. the previous commit
eliminated the need for it.
* add `zig translate-c` CLI option but it's not fully hooked up yet.
It should be possible for this to be fully wired up before merging
this branch.
* `zig targets` now uses canonical data for available_libcs
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index af3bc4b2a1..9f6d2b3d7b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,7 +78,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { " -fno-emit-asm (default) do not output .s (assembly code)\n" " -femit-llvm-ir produce a .ll file with LLVM IR\n" " -fno-emit-llvm-ir (default) do not produce a .ll file with LLVM IR\n" - " -femit-h generate a C header file (.h)\n" + " -femit-h generate a C header file (.h)\n" " -fno-emit-h (default) do not generate a C header file (.h)\n" " --libc [file] Provide a file which specifies libc paths\n" " --name [name] override output name\n" |
