diff options
Diffstat (limited to 'src/resolver/resolve_path.zig')
-rw-r--r-- | src/resolver/resolve_path.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolver/resolve_path.zig b/src/resolver/resolve_path.zig index cd6d79738..10cea0c37 100644 --- a/src/resolver/resolve_path.zig +++ b/src/resolver/resolve_path.zig @@ -306,7 +306,7 @@ pub fn dirname(str: []const u8, comptime platform: Platform) []const u8 { threadlocal var relative_from_buf: [4096]u8 = undefined; threadlocal var relative_to_buf: [4096]u8 = undefined; pub fn relative(from: []const u8, to: []const u8) []const u8 { - if (FeatureFlags.use_std_path_relative) { + if (comptime FeatureFlags.use_std_path_relative) { var relative_allocator = std.heap.FixedBufferAllocator.init(&relative_from_buf); return relativeAlloc(&relative_allocator.allocator, from, to) catch unreachable; } else { |