Skip to content

Commit 1e0e2d1

Browse files
committed
nits: strip flags
1 parent f2de830 commit 1e0e2d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_gem/lib/go_gem/rake_task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def self.generate_cflags
140140
# FIXME: Workaround for Alpine
141141
cflags.gsub!("-Wpointer-arith", "") if RUBY_PLATFORM =~ /linux-musl/i
142142

143-
cflags
143+
cflags.strip
144144
end
145145
private_class_method :generate_cflags
146146

_gem/lib/go_gem/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def self.generate_ldflags
2929
# FIXME: Workaround for Ubuntu (GitHub Actions)
3030
ldflags.gsub!("-Wl,--unresolved-symbols=ignore-all", "") if RUBY_PLATFORM =~ /linux/i
3131

32-
ldflags
32+
ldflags.strip
3333
end
3434
end
3535
end

0 commit comments

Comments
 (0)