mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
Fix lastchange rebuild problem.
lastchange.py is causing a full rebuild on every commit. This is a temporary workaround.
This commit is contained in:
parent
0c2abb9339
commit
a63d794c7f
1 changed files with 16 additions and 4 deletions
|
@ -25,11 +25,23 @@ def main():
|
|||
gn_gen("debug")
|
||||
|
||||
|
||||
def write_if_not_exists(filename, contents):
|
||||
if not os.path.exists(filename):
|
||||
with open(filename, "w+") as f:
|
||||
f.write(contents)
|
||||
|
||||
|
||||
def write_lastchange():
|
||||
run([
|
||||
sys.executable, "build/util/lastchange.py", "-o",
|
||||
"build/util/LASTCHANGE", "--source-dir", root_path, "--filter="
|
||||
])
|
||||
write_if_not_exists(
|
||||
"build/util/LASTCHANGE",
|
||||
"LASTCHANGE=c42e4ddbb7973bfb0c57a49ab6bf6dc432baad7e-\n")
|
||||
write_if_not_exists("build/util/LASTCHANGE.committime", "1535518087")
|
||||
# TODO Properly we should call the following script, but it seems to cause
|
||||
# a rebuild on every commit.
|
||||
# run([
|
||||
# sys.executable, "build/util/lastchange.py", "-o",
|
||||
# "build/util/LASTCHANGE", "--source-dir", root_path, "--filter="
|
||||
# ])
|
||||
|
||||
|
||||
def get_gn_args():
|
||||
|
|
Loading…
Reference in a new issue