Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for specifying the build date #6788

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add support for specifying the build date
  • Loading branch information
peterhoeg committed Sep 24, 2018
commit ea0aed989d1c9e14a8bd513b7f817704d243b35c
2 changes: 1 addition & 1 deletion src/compiler/crystal/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Crystal
end

def self.date
{{ `date "+%Y-%m-%d"`.stringify.chomp }}
{{ env("CRYSTAL_CONFIG_BUILD_DATE") || `date "+%Y-%m-%d"`.stringify.chomp }}
end

def self.default_target_triple
Expand Down