[PATCH] Add clang headers that fix machine-dependent definitions on FreeBSD 9.2

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Jul 18 01:58:00 PDT 2014


> [23:05:18] <TobiasFar> so the hierarchy is basically flattend? if one has source file src/a/b/c/filename.txt it'll copy it to target/filename.txt
> [23:07:20] <+ngladitz> just like every other command line copy command I know
> [23:07:24] <+ngladitz> http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/kwsys/SystemTools.cxx;h=db94510730aa7c0e8259d8fcc3ed6e23065b562c;hb=refs/heads/master#l2013

According to cmake 3.0.0 sources and the HEAD version referenced above, SystemTools::CopyFileIfDifferent() leverages SystemTools::CopyFileAlways() which relies on SystemTools::MakeDirectory() which, in turn, attempts to create each of the specified subdirectories explicitly:

  while((pos = dir.find('/', pos)) != kwsys_stl::string::npos)
    {
    topdir = dir.substr(0, pos);
    Mkdir(topdir.c_str());
    pos++;
    }
  topdir = dir;
  if(Mkdir(topdir.c_str()) != 0)

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/kwsys/SystemTools.cxx;h=db94510730aa7c0e8259d8fcc3ed6e23065b562c;hb=refs/heads/master#l655

http://reviews.llvm.org/D3908






More information about the llvm-commits mailing list