Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2021

Do not probe compiler for files removed during build

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6.0
    • Component/s: Compiler Driver
    • Labels:
      None

      Description

      build.sh
      #!/bin/sh
      
      mkdir compiler-test
      cd compiler-test
      echo "int main() { return 0; }" > test.c
      clang test.c
      cd ..
      rm -rf compiler-test
      
      echo "int main() { return 0; }" > main.m
      clang main.m
      
      java.lang.IllegalStateException: java.io.IOException: Cannot run program "/usr/bin/clang" (in directory "/tmp/cpp/test/compiler-test"): error=2, No such file or directory
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              evgeny.mandrikov Evgeny Mandrikov
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: