We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5666481 commit 4e534b0Copy full SHA for 4e534b0
src/commands/build.cr
@@ -25,11 +25,10 @@ module Shards
25
private def build(target, options)
26
Log.info { "Building: #{target.name}" }
27
28
- args = [
29
- "build",
30
- "-o", File.join(Shards.bin_path, target.name),
31
- target.main,
32
- ]
+ args = ["build", "-o", File.join(Shards.bin_path, target.name)]
+ args << "--release" if Shards.production
+ args << target.main
+
33
options.each { |option| args << option }
34
Log.debug { "crystal #{args.join(' ')}" }
35
0 commit comments