diff options
| author | Vexu <git@vexu.eu> | 2020-04-07 23:34:30 +0300 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-04-08 00:27:14 +0300 |
| commit | ff0f97a1bcab4d27212c67b0ebc6233adf2f0de9 (patch) | |
| tree | def7d8a41a2821eefc613fdec76c77aaf9c2fd7f /build.zig | |
| parent | ed23dad4877cd93fd684852b17e0e554ef71e297 (diff) | |
| download | zig-ff0f97a1bcab4d27212c67b0ebc6233adf2f0de9.tar.gz zig-ff0f97a1bcab4d27212c67b0ebc6233adf2f0de9.zip | |
fix missing compile error on assign to slice and array parameters
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -225,10 +225,11 @@ fn findLLVM(b: *Builder, llvm_config_exe: []const u8) !LibraryDep { if (fs.path.isAbsolute(lib_arg)) { try result.libs.append(lib_arg); } else { + var lib_arg_copy = lib_arg; if (mem.endsWith(u8, lib_arg, ".lib")) { - lib_arg = lib_arg[0 .. lib_arg.len - 4]; + lib_arg_copy = lib_arg[0 .. lib_arg.len - 4]; } - try result.system_libs.append(lib_arg); + try result.system_libs.append(lib_arg_copy); } } } |
