Skip to content

Commit c6add61

Browse files
committed
Add nullable handling to executable_assembly.bzl
1 parent 026328e commit c6add61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dotnet/private/executable_assembly.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def create_executable_assembly(ctx, extra_srcs, extra_deps):
7575
internals_visible_to = None,
7676
internals_visible_to_cs = None,
7777
langversion = ctx.attr.langversion,
78+
nullable = ctx.attr.nullable,
7879
resources = ctx.files.resources,
7980
srcs = ctx.files.srcs + extra_srcs,
8081
out = ctx.attr.out,
@@ -143,6 +144,9 @@ csharp_executable = rule(
143144
"langversion": attr.string(
144145
doc = "The version string for the C# language.",
145146
),
147+
"nullable": attr.string(
148+
doc = "Enable nullable context, or nullable warnings.",
149+
),
146150
"resources": attr.label_list(
147151
doc = "A list of files to embed in the DLL as resources.",
148152
allow_files = True,

0 commit comments

Comments
 (0)