aboutsummaryrefslogtreecommitdiff
path: root/test/standalone.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-05-22 13:08:00 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-05-22 16:12:45 +0200
commit2b0d322ea003907dc2111864cea259e5e0043328 (patch)
tree8707c105b098f8e1aa504cc3adcaeaaf4cfdf244 /test/standalone.zig
parentf4101c1153980b887e9aa8850ac0a9dd88192140 (diff)
downloadzig-2b0d322ea003907dc2111864cea259e5e0043328.tar.gz
zig-2b0d322ea003907dc2111864cea259e5e0043328.zip
zld: permit system static libs
This commits permits passing in static archives using the system lib flag `-la`. With this commit, `zig ld` will now look firstly for a dynamic library (which always takes precedence), and will fall back on `liba.a` if the dylib is not found. The static archive is searched for in the system lib search dirs like the dylibs.
Diffstat (limited to 'test/standalone.zig')
-rw-r--r--test/standalone.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/standalone.zig b/test/standalone.zig
index e1236d448b..9dd849ef88 100644
--- a/test/standalone.zig
+++ b/test/standalone.zig
@@ -14,6 +14,7 @@ pub fn addCases(cases: *tests.StandaloneContext) void {
cases.addBuildFile("test/standalone/global_linkage/build.zig");
cases.addBuildFile("test/standalone/static_c_lib/build.zig");
cases.addBuildFile("test/standalone/link_interdependent_static_c_libs/build.zig");
+ cases.addBuildFile("test/standalone/link_static_lib_as_system_lib/build.zig");
cases.addBuildFile("test/standalone/issue_339/build.zig");
cases.addBuildFile("test/standalone/issue_794/build.zig");
cases.addBuildFile("test/standalone/issue_5825/build.zig");