From 026383b429001c15658e02e72e59e932ecefd6fe Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 9 Oct 2017 09:46:46 +0200 Subject: [PATCH] Fixed symlinks --- scripts/compilation/qp_create_ninja.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compilation/qp_create_ninja.py b/scripts/compilation/qp_create_ninja.py index 1b7272b1..cb1ea89a 100755 --- a/scripts/compilation/qp_create_ninja.py +++ b/scripts/compilation/qp_create_ninja.py @@ -266,7 +266,7 @@ def ninja_ezfio_rule(): install_lib_ezfio = join(QP_ROOT, 'install', 'EZFIO', "lib", "libezfio_irp.a") l_cmd = ["cd {0}".format(QP_EZFIO)] + l_flag - l_cmd += ["rm -f make.config ; ninja && ln -sf {0} {1}".format(install_lib_ezfio, EZFIO_LIB)] + l_cmd += ["rm -f make.config ; ninja && rm -f {1} ; ln -sf {0} {1}".format(install_lib_ezfio, EZFIO_LIB)] l_string = ["rule build_ezfio", " command = {0}".format(" ; ".join(l_cmd)), @@ -307,7 +307,7 @@ def ninja_symlink_rule(): """ Return the command to create for the symlink """ - return ["rule build_symlink", " command = ln -sf $in $out", ""] + return ["rule build_symlink", " command = rm -f $out ; ln -sf $in $out", ""] def ninja_symlink_build(path_module, l_symlink):