Skip to content
  • Andrew Shark's avatar
    Fix not updated symlinks in log dir and for compile_commands.json · 14fe1350
    Andrew Shark authored
    - In "latest-by-phase" log directory the symlinks to real log directories were not updated if they existed.
    
    - When using compile-commands-linking, if you change the build-dir, the symlinks to compile_commands.json were not updated if they existed.
    
    This happened because there was not a check of exit status of symlink perl function in these two cases. It returns the 0 status code in case of failure rather than throwing an exception.
    Made a separate Util function "remake_symlink" to be able to reuse it.
    14fe1350