1. 24 Jan, 2017 2 commits
    • Treehugger Robot's avatar
    • Michael Maltese's avatar
      Don't manually set CMAKE_C_COMPILER_ID in toolchain file · 15909f20
      Michael Maltese authored
      Bug: https://github.com/android-ndk/ndk/issues/222 : CMake toolchain
      file's `CMAKE_CXX_COMPILER_ID_RUN=true` breaks compiler feature
      detection
      Bug: https://github.com/android-ndk/ndk/issues/253 : cmake toolchain
      file does not set CMAKE_CXX_COMPILER_VERSION
      Bug: https://gitlab.kitware.com/cmake/cmake/issues/16587 : Adding
      "-march=" to flags breaks determining compiler ID when cross-compiling
      with Clang
      
      The current comment reads:
      
      > Clang can fail to compile if CMake doesn't correctly supply the target
      > and external toolchain, but to do so, CMake needs to already know
      > that the compiler is clang. Tell CMake that the compiler is really
      > clang, but don't use CMakeForceCompiler, since we still want
      > compile checks. We only want to skip the compiler ID detection
      > step.
      
      The issue arises in CMakeDetermineCompilerId.cmake, which passes along
      user-specified flags like `-march=armv5te` but not the specified
      compiler target. On Clang, this fails, since the validity of `-march`
      depends on the current target.
      
      I've filed a bug for CMake to fix this (allow determining the compiler
      ID without using user flags). In the meantime, I think a more robust
      solution than overriding CMAKE_CXX_COMPILER_ID_RUN is to run the
      compiler ID checks before passing along any flags. The
      CMakeDetermineCCompiler.cmake and CMakeDetermineCXXCompiler.cmake
      modules are not marked for internal-use-only, and this method takes a
      more proactive approach to the problem.
      
      Change-Id: I2c250ebc2999b3f251417a9e3730b5e093e446d1
      15909f20
  2. 23 Jan, 2017 1 commit
  3. 20 Jan, 2017 1 commit
    • Dan Albert's avatar
      Use the linker scripts for libc++ in cmake. · 7582b00d
      Dan Albert authored
      We had libc++_shared specified incorrectly here (wasn't using
      libandroid_support). Just use the linker scripts that were created to
      avoid this problem.
      
      Test: ./validate.py
      Bug: None
      Change-Id: Ifcc87954d2b889c63c618c7f70f57a5d747b00f2
      7582b00d
  4. 19 Jan, 2017 2 commits
    • Dan Albert's avatar
      Set more clang CMake compiler info. · 8e8a3efb
      Dan Albert authored
      Necessary for projects performing checks against the compiler
      version. We don't need this for GCC because cmake will compute it,
      but we have to hack around that for clang.
      
      Test: No useful test to add since this number has to be updated
            manually anyway.
      Bug: https://github.com/android-ndk/ndk/issues/253
      
      Change-Id: I314c01628fe038a3fcade379b6a6119dce094572
      8e8a3efb
    • Dan Albert's avatar
      Merge changes I44ea7e10,I55286630,I518f9542,Iff080a0b,I5805d945, ... · a7ed3f9a
      Dan Albert authored
      * changes:
        Remove support for awk tests.
        Remove awk from the NDK!
        Replace gen-windows-host-path.awk with Python.
        Remove gen-cywgin-deps-converter.awk.
        Remove unused awk scripts.
        Replace extract-debuggable.awk with Python.
        Replace extract-minsdkversion.awk with Python.
        Replace extract-platform.awk with Python.
      a7ed3f9a
  5. 18 Jan, 2017 6 commits
    • Treehugger Robot's avatar
      1dcf28e9
    • Dan Albert's avatar
      Remove support for awk tests. · 1e9e1d8d
      Dan Albert authored
      We don't have any awk in the NDK any more.
      
      Test: ./validate.py
      Bug: None
      Change-Id: I44ea7e10b1c25ca4c7b0050d2d00e6b426ecd1d1
      1e9e1d8d
    • Dan Albert's avatar
      Remove awk from the NDK! · d0b5e124
      Dan Albert authored
      Test: ./validate.py
      Bug: None
      Change-Id: I5528663072f30a6def6656bad5113a3253fb9213
      d0b5e124
    • Dan Albert's avatar
      Replace gen-windows-host-path.awk with Python. · 7cf0325b
      Dan Albert authored
      No more awk dependencies!
      
      Test: nose2
      Bug: None
      Change-Id: I518f9542ca336d2e606c3088c9a4f53b65fb5418
      7cf0325b
    • Dan Albert's avatar
      Remove gen-cywgin-deps-converter.awk. · 270ec943
      Dan Albert authored
      As far as I can tell we don't need this at all. For one, Cygwin users
      can invoke ndk-build.cmd (and in fact, at the moment that's their
      only choice out of the box) and in that situation HOST_OS is
      "windows" rather than "cygwin" and this code doesn't get run at all.
      If you manually create the ndk-build (shell) shortcut for cygwin,
      this isn't needed anyway since all the paths in dep files seem to be
      relative paths.
      
      At some point we should figure out if we need the cygwin support at
      all. As far as I can tell it's just a bunch of hacks that we don't
      need.
      
      Test: ./run_tests.py --abi armeabi-v7a  # In cygwin
      Bug: None
      Change-Id: Iff080a0bfdf318f781d0a4ca6455b36c0dbaea06
      270ec943
    • Dan Albert's avatar
      Remove unused awk scripts. · db8dfd80
      Dan Albert authored
      Test: ./checkbuild.py
      Bug: None
      Change-Id: I5805d9456ec91f601eeb7253ca731a90f9cae73e
      db8dfd80
  6. 17 Jan, 2017 4 commits
  7. 13 Jan, 2017 6 commits
  8. 12 Jan, 2017 2 commits
  9. 10 Jan, 2017 3 commits
  10. 09 Jan, 2017 1 commit
  11. 07 Jan, 2017 1 commit
  12. 06 Jan, 2017 4 commits
  13. 05 Jan, 2017 5 commits
  14. 04 Jan, 2017 2 commits