tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wrappers and gcc -isystem



On 2016-02-03 01:33, Joerg Sonnenberger wrote:
*sigh* Why? There are only two reasons for using -isystem over -I:
- include order
- suppression of warnings

Neither sounds like a good idea for this.

That may be true but it does seem that its increasingly being used out there:

/usr/pkg/qt5/mkspecs/common/clang.conf:QMAKE_CFLAGS_ISYSTEM = -isystem /usr/pkg/qt5/mkspecs/common/gcc-base.conf:QMAKE_CFLAGS_ISYSTEM = -isystem /usr/pkg/share/cmake-3.4/Help/manual/cmake-buildsystem.7.rst:with ``-I`` or ``-isystem`` prefixes and in the order of appearance in the /usr/pkg/share/cmake-3.4/Modules/Compiler/Clang.cmake: set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ") /usr/pkg/share/cmake-3.4/Modules/Compiler/GNU-Fortran.cmake:# No -isystem for Fortran because it will not find .mod files. /usr/pkg/share/cmake-3.4/Modules/Compiler/GNU.cmake: set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ") /usr/pkg/share/cmake-3.4/Modules/Compiler/QCC.cmake: set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-Wp,-isystem,") /usr/pkg/share/cmake-3.4/Modules/Platform/Darwin.cmake:# Xcode does not support -isystem yet. /usr/pkg/share/cmake-3.4/Modules/Platform/Linux-Intel-C.cmake:set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ") /usr/pkg/share/cmake-3.4/Modules/Platform/Linux-Intel-CXX.cmake:set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")

cheers
mark



Home | Main Index | Thread Index | Old Index