Build llvm/clang with cmake vs configure produces different set of artifacts

    In another post I was trying to find out how to use libc++ instead of libstdc++ when compiling llvm/clang. I couldnt find the a way to tell cmake to do that.

    So I switched to using configure to compile llvm/clang. But now I find that the artifacts produced are different. Here are the issues I see:
- configure doesnt seem to respect '--prefix' option, it just puts everything in the build directory
- configure doesnt create the include dir under "Release+Asserts"
- configure doesnt create files like clang/CodeGen/ModuleBuilder.h

   The list of artifacts is attached. Any pointers? The commands I used are:

cmake -G "$cmake_args" -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="../bin" ../src

../src/configure --prefix=$PWD/../bin --enable-libcpp --enable-optimized --disable-docs --enable-targets=host --with-extra-options="-I$PWD/../../libcxx/include -I$PWD/../../libcxx/build/addinclude" --with-extra-ld-options="-L$PWD/../../libcxx/build"
LD_LIBRARY_PATH=$PWD/../../libcxx/build/:$LD_LIBRARY_PATH make -j32


cmake_vs_configure_artifacts.txt (4.1 KB)