diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-30 21:23:37 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2020-09-15 20:55:40 +0900 |
| commit | 7d76314885be3532999684356657ce36da84d04e (patch) | |
| tree | aae23ff9ce30ff03c1f0867c0bc46ea968e8e324 /lib/rubygems/ext | |
| parent | 3590f082442afc4506250f5274a7877371a112de (diff) | |
Merge RubyGems 3.1.4
Diffstat (limited to 'lib/rubygems/ext')
| -rw-r--r-- | lib/rubygems/ext/builder.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb index 2fc1074d92..a8bd4c8d1b 100644 --- a/lib/rubygems/ext/builder.rb +++ b/lib/rubygems/ext/builder.rb @@ -68,7 +68,9 @@ class Gem::Ext::Builder results << (command.respond_to?(:shelljoin) ? command.shelljoin : command) require "open3" - output, status = Open3.capture2e(*command) + # Set $SOURCE_DATE_EPOCH for the subprocess. + env = {'SOURCE_DATE_EPOCH' => Gem.source_date_epoch_string} + output, status = Open3.capture2e(env, *command) if verbose puts output else |
