1

bump to go 1.19

Removing --no-gc-sections, because that's now in Go. Whoo!
This commit is contained in:
Motiejus Jakštys 2022-08-12 05:18:18 +03:00
parent 5240246cab
commit 771fcc5bc6
2 changed files with 1 additions and 18 deletions

View File

@ -30,7 +30,7 @@ go_rules_dependencies()
# use latest stable. # use latest stable.
go_download_sdk( go_download_sdk(
name = "go_sdk", name = "go_sdk",
version = "1.18.3", version = "1.19",
) )
go_register_toolchains() go_register_toolchains()

View File

@ -101,7 +101,6 @@ def _zig_cc_toolchain_config_impl(ctx):
"-D__TIMESTAMP__=\"redacted\"", "-D__TIMESTAMP__=\"redacted\"",
"-D__TIME__=\"redacted\"", "-D__TIME__=\"redacted\"",
] ]
no_gc_sections = ["-Wl,--no-gc-sections"]
compile_and_link_flags = feature( compile_and_link_flags = feature(
name = "compile_and_link_flags", name = "compile_and_link_flags",
@ -109,20 +108,6 @@ def _zig_cc_toolchain_config_impl(ctx):
flag_sets = [ flag_sets = [
flag_set( flag_set(
actions = compile_and_link_actions, actions = compile_and_link_actions,
flag_groups = [
flag_group(flags = no_gc_sections),
flag_group(flags = compiler_flags + ctx.attr.copts),
],
),
],
)
rest_compile_flags = feature(
name = "rest_compile_flags",
enabled = True,
flag_sets = [
flag_set(
actions = rest_compile_actions,
flag_groups = [ flag_groups = [
flag_group(flags = compiler_flags + ctx.attr.copts), flag_group(flags = compiler_flags + ctx.attr.copts),
], ],
@ -149,7 +134,6 @@ def _zig_cc_toolchain_config_impl(ctx):
flag_groups = [ flag_groups = [
flag_group( flag_group(
flags = ["-target", ctx.attr.target] + flags = ["-target", ctx.attr.target] +
no_gc_sections +
ctx.attr.linkopts, ctx.attr.linkopts,
), ),
], ],
@ -159,7 +143,6 @@ def _zig_cc_toolchain_config_impl(ctx):
features = [ features = [
compile_and_link_flags, compile_and_link_flags,
rest_compile_flags,
default_linker_flags, default_linker_flags,
] + _compilation_mode_features(ctx) ] + _compilation_mode_features(ctx)