We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3034902 commit a4c63b1Copy full SHA for a4c63b1
src/meson.build
@@ -36,6 +36,11 @@ sources = files(
36
'pkg/version/version.go',
37
)
38
39
+go_tags = []
40
+if migration_path_for_coreos_toolbox
41
+ go_tags += 'migration_path_for_coreos_toolbox'
42
+endif
43
+
44
toolbox_go = custom_target(
45
'toolbox',
46
command: [
@@ -44,6 +49,10 @@ toolbox_go = custom_target(
49
'-C', meson.current_source_dir(),
50
'-trimpath',
51
'-buildmode=c-archive',
52
+ '-tags', ','.join(go_tags),
53
+ '-ldflags',
54
+ '-X github.com/containers/toolbox/pkg/version.currentVersion='
55
+ + meson.project_version(),
47
56
'-o', meson.project_build_root() + '/@OUTPUT@',
48
57
'@INPUT@',
58
],
0 commit comments