Skip to content
Snippets Groups Projects
  1. Apr 29, 2015
  2. Apr 28, 2015
  3. Apr 27, 2015
  4. Apr 24, 2015
  5. Apr 23, 2015
  6. Apr 22, 2015
  7. Apr 21, 2015
  8. Apr 20, 2015
    • Nikolai Kosjar's avatar
      Clang: Fix providing clang directory with intrinsics · e488f10c
      Nikolai Kosjar authored
      
      Opening a main.cpp of a Qt Widget Application project that is configured
      with a GCC toolchain leads to errors [1] like
      
          /usr/lib/gcc/x86_64-linux-gnu/4.8/include/ia32intrin.h:41:10: \
          error: use of undeclared identifier '__builtin_ia32_bsrsi'
      
      due to a wrong determination of the clang directory with intrinsics. The
      directory was determined as
      
          $${LLVM_LIBDIR}/clang/$${LLVM_VERSION}/include
      
      whereas $LLVM_VERSION was extracted as e.g. "3.5" from 'llvm-config
      --version' instead of "3.5.0".
      
      The path of clang intrinsics dir shipped with Qt Creator (as package)
      does also match this version scheme:
      
          $QTC_INSTALL_DIR/share/qtcreator/cplusplus/clang/3.4.2/include
      
      [1] Visible with qtc.clangcodemodel.verboserun=true
      
      Change-Id: I1061912eef437a9889987e638915d2fabe208011
      Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      e488f10c
  9. Apr 17, 2015
  10. Apr 16, 2015
Loading