aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-06-23 16:20:20 +0200
committerLuuk de Gram <luuk@degram.dev>2022-06-24 08:12:17 +0200
commit7c87f9c828282aa12fb2d77c9c6a2318d83b8dff (patch)
treed1168ba85eca9ea505d901faecd97847b5bea76c /src/Compilation.zig
parent3868864695b41c2c94f585b9644d3ed3bda39708 (diff)
downloadzig-7c87f9c828282aa12fb2d77c9c6a2318d83b8dff.tar.gz
zig-7c87f9c828282aa12fb2d77c9c6a2318d83b8dff.zip
link:clarification & enable MachO getGlobalSymbol
This adds clarification to the getGlobalSymbol doc comments, as well as renames the `addExternFn` function for MachO to `getGlobalSymbol`. This function will now be called from 'src/link.zig' as well. Finally, this also enables compiling zig's libc using LLVM even though the `fno-LLVM` flag is given.
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 0a97ee9f7e..8cb93b5473 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1920,8 +1920,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
// and make sure the compiler-rt symbols are emitted.
const capable_of_building_compiler_rt = build_options.have_llvm;
- const capable_of_building_zig_libc = comp.bin_file.options.use_stage1 or
- comp.bin_file.options.use_llvm;
+ const capable_of_building_zig_libc = build_options.have_llvm;
const capable_of_building_ssp = comp.bin_file.options.use_stage1;
if (comp.bin_file.options.include_compiler_rt and capable_of_building_compiler_rt) {