Skip to content
  1. Jun 05, 2012
  2. Jun 04, 2012
  3. Jun 03, 2012
  4. Jun 02, 2012
    • Benjamin Kramer's avatar
      Use access(2) instead of stat(2) to check if a file exists. · 172f8084
      Benjamin Kramer authored
      Apart from being slightly cheaper, this fixes a real bug that hits 32 bit
      linux systems. When passing a file larger than 2G to be linked (which isn't
      that uncommon with large projects such as WebKit), clang's driver checks
      if the file exists but the file size doesn't fit in an off_t and stat(2)
      fails with EOVERFLOW. Clang then says that the file doesn't exist instead
      of passing it to the linker.
      
      llvm-svn: 157891
      172f8084
Loading