diff options
author | Alexandre Rames <alexandre.rames@linaro.org> | 2016-06-08 21:32:03 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2016-06-08 21:39:20 +0100 |
commit | 4e2419325bb29b7094dfa23c94b8b269568c77a0 (patch) | |
tree | 92c3b0b27d1761f42d2d3dcc6b1aa9cdf362a29d /SConstruct | |
parent | dd47fed5e4cd380a8a5a3dd4ab80d8531a5e7c93 (diff) |
Correctly remove `obj/latest` when it is a directory.
Change-Id: I435bf61633433a80647b58eeeb22d7de6de44227
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -272,7 +272,8 @@ def PrepareVariantDir(location, build_dir): def VIXLLibraryTarget(env): build_dir = TargetBuildDir(env) # Create a link to the latest build directory. - subprocess.check_call(["rm", "-f", config.dir_build_latest]) + # Use `-r` to avoid failure when `latest` exists and is a directory. + subprocess.check_call(["rm", "-rf", config.dir_build_latest]) util.ensure_dir(build_dir) subprocess.check_call(["ln", "-s", build_dir, config.dir_build_latest]) # Source files are in `src` and in `src/a64/`. |