Skip to content

Commit 86a38bb

Browse files
committed
Resolved Cannot find the declaration of constant: CONFIG
``` _gem/lib/go_gem/mkmf.rb:29:14: [warning] Cannot find the declaration of constant: `CONFIG` │ Diagnostic ID: Ruby::UnknownConstant │ └ case `#{CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition ~~~~~~ ```
1 parent d6ac684 commit 86a38bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_gem/lib/go_gem/mkmf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def $objs.empty?; false; end
2626

2727
create_makefile(target, srcprefix)
2828

29-
case `#{CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition
29+
case `#{RbConfig::CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition
3030
when /Free Software Foundation/
3131
ldflags = "-Wl,--unresolved-symbols=ignore-all"
3232
when /clang/

0 commit comments

Comments
 (0)