diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2015-09-24 19:28:13 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2015-09-29 10:31:18 +0000 |
commit | dfa35d7fd5aebe5ed5e38223dd8c313c4a3dfd72 (patch) | |
tree | 95784cdc4f2bdc740824424eb8eb14dfa88ea7a5 | |
parent | 3ca84bc574c141ea317d2715d868ff4d321a00fa (diff) | |
download | qtwebkit-dfa35d7fd5aebe5ed5e38223dd8c313c4a3dfd72.tar.gz |
offlineasm: "touch" output file if nothing has changed.
If offlineasm exits with "Nothing changed" timestamp of generated file
is unchanged so make utility still considers it as outdated.
Change-Id: Id3443294bc034978679219177f32acb0afa0dc00
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
-rw-r--r-- | Source/JavaScriptCore/offlineasm/asm.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/offlineasm/asm.rb b/Source/JavaScriptCore/offlineasm/asm.rb index bf2426399..ed0f15340 100644 --- a/Source/JavaScriptCore/offlineasm/asm.rb +++ b/Source/JavaScriptCore/offlineasm/asm.rb @@ -28,6 +28,7 @@ $: << File.dirname(__FILE__) require "config" require "backends" require "digest/sha1" +require "fileutils" require "offsets" require "parser" require "self_hash" @@ -244,6 +245,7 @@ if FileTest.exist? outputFlnm firstLine = inp.gets if firstLine and firstLine.chomp == inputHash $stderr.puts "offlineasm: Nothing changed." + FileUtils.touch(outputFlnm) exit 0 end } |