diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-09-11 01:22:18 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-09-11 10:46:37 +0200 |
| commit | 0a76a9bd738471e2edddf71a822ff76c47bfd094 (patch) | |
| tree | 42ae5920d24aadd42f0dcfad1b902465f09b3b9f /src/glibc.cpp | |
| parent | 800c5de2ae527cdefaa5567720dab2f899244897 (diff) | |
| download | zig-0a76a9bd738471e2edddf71a822ff76c47bfd094.tar.gz zig-0a76a9bd738471e2edddf71a822ff76c47bfd094.zip | |
std, stage1: make shared library versioning optional
This commit changes the behavior of stage1 to emit libfoo.so instead
of libfoo.so.0.0.0 when none of the --ver-major, --ver-minor, or
--ver-patch flags are set.
It also makes it possible to create unversioned shared libraries
using the zig build system, changing the version parameter of
addSharedLibrary() to a tagged union.
Diffstat (limited to 'src/glibc.cpp')
| -rw-r--r-- | src/glibc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibc.cpp b/src/glibc.cpp index 2456cab44c..62f5604ba7 100644 --- a/src/glibc.cpp +++ b/src/glibc.cpp @@ -335,7 +335,7 @@ Error glibc_build_dummies_and_maps(CodeGen *g, const ZigGLibCAbi *glibc_abi, con bool is_ld = (strcmp(lib->name, "ld") == 0); CodeGen *child_gen = create_child_codegen(g, zig_file_path, OutTypeLib, nullptr, lib->name, progress_node); - codegen_set_lib_version(child_gen, lib->sover, 0, 0); + codegen_set_lib_version(child_gen, true, lib->sover, 0, 0); child_gen->is_dynamic = true; child_gen->is_dummy_so = true; child_gen->version_script_path = map_file_path; |
