fix downstream build issues
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m37s
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 2m37s
This commit is contained in:
parent
cbcdaf5bd7
commit
5376b6a725
|
@ -57,5 +57,5 @@ pub fn configureBuild(b: *std.Build, cs: *std.Build.Step.Compile) !void {
|
||||||
try @import("src/universal_lambda_build.zig").configureBuild(b, cs);
|
try @import("src/universal_lambda_build.zig").configureBuild(b, cs);
|
||||||
}
|
}
|
||||||
pub fn addModules(b: *std.Build, cs: *std.Build.Step.Compile) ![]const u8 {
|
pub fn addModules(b: *std.Build, cs: *std.Build.Step.Compile) ![]const u8 {
|
||||||
try @import("src/universal_lambda_build.zig").addModules(b, cs);
|
return try @import("src/universal_lambda_build.zig").addModules(b, cs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub fn run(allocator: ?std.mem.Allocator, event_handler: interface.HandlerFn) !u
|
||||||
const data = if (is_test)
|
const data = if (is_test)
|
||||||
test_content
|
test_content
|
||||||
else
|
else
|
||||||
std.io.getStdIn().reader().readAllAlloc(aa, std.math.maxInt(usize));
|
try std.io.getStdIn().reader().readAllAlloc(aa, std.math.maxInt(usize));
|
||||||
// We're setting up an arena allocator. While we could use a gpa and get
|
// We're setting up an arena allocator. While we could use a gpa and get
|
||||||
// some additional safety, this is now "production" runtime, and those
|
// some additional safety, this is now "production" runtime, and those
|
||||||
// things are better handled by unit tests
|
// things are better handled by unit tests
|
||||||
|
@ -173,7 +173,7 @@ pub fn findHeaders(allocator: std.mem.Allocator) !Headers {
|
||||||
// or the command line. For headers, we'll prioritize command line options
|
// or the command line. For headers, we'll prioritize command line options
|
||||||
// with a fallback to environment variables
|
// with a fallback to environment variables
|
||||||
const is_test = @import("builtin").is_test;
|
const is_test = @import("builtin").is_test;
|
||||||
var argIterator = if (is_test) test_args.iterator(0) else std.process.argsWithAllocator(allocator);
|
var argIterator = if (is_test) test_args.iterator(0) else try std.process.argsWithAllocator(allocator);
|
||||||
_ = argIterator.next();
|
_ = argIterator.next();
|
||||||
var is_header_option = false;
|
var is_header_option = false;
|
||||||
while (argIterator.next()) |a| {
|
while (argIterator.next()) |a| {
|
||||||
|
|
|
@ -17,7 +17,7 @@ pub var module_root: ?[]const u8 = null;
|
||||||
pub fn configureBuild(b: *std.Build, cs: *std.Build.Step.Compile) !void {
|
pub fn configureBuild(b: *std.Build, cs: *std.Build.Step.Compile) !void {
|
||||||
const function_name = b.option([]const u8, "function-name", "Function name for Lambda [zig-fn]") orelse "zig-fn";
|
const function_name = b.option([]const u8, "function-name", "Function name for Lambda [zig-fn]") orelse "zig-fn";
|
||||||
|
|
||||||
const file_location = addModules(b, cs);
|
const file_location = try addModules(b, cs);
|
||||||
|
|
||||||
// Add steps
|
// Add steps
|
||||||
try @import("lambda_build.zig").configureBuild(b, cs, function_name);
|
try @import("lambda_build.zig").configureBuild(b, cs, function_name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user