• Even Rouault's avatar
    Do not override user-defined CMAKE_C[XX]_FLAGS for clang · d03f5ab7
    Even Rouault authored
    337585e3 unconditionnaly
    overrides any potential user-defined CMAKE_C[XX]_FLAGS.
    This for example breaks the GDAL oss-fuzz builds which build Poppler
    from source (see https://github.com/OSGeo/gdal/blob/master/gdal/fuzzers/build.sh#L54)
    
    So do the same as the GCC path where we save input CMAKE_C[XX]_FLAGS
    and reinject them in custom CMAKE_C{XX}_FLAGS_{build_configuration}
    The values are identical to GCC, execpt for the _DEBUG configuration
    where we remove '-O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline'
    since clang does not support -fno-reorder-blocks and -fno-schedule-insns,
    so it is likely better to disable any optimization for proper debugging.
    d03f5ab7
Name
Last commit
Last update
..
COPYING-CMAKE-SCRIPTS Loading commit data...
CheckFileOffsetBits.c Loading commit data...
CheckFileOffsetBits.cmake Loading commit data...
FindCairo.cmake Loading commit data...
FindFontconfig.cmake Loading commit data...
FindGLIB.cmake Loading commit data...
FindGObjectIntrospection.cmake Loading commit data...
FindGTK.cmake Loading commit data...
FindIconv.cmake Loading commit data...
FindLCMS2.cmake Loading commit data...
FindNSS3.cmake Loading commit data...
GObjectIntrospectionMacros.cmake Loading commit data...
MacroBoolTo01.cmake Loading commit data...
MacroEnsureVersion.cmake Loading commit data...
MacroOptionalFindPackage.cmake Loading commit data...
PopplerDefaults.cmake Loading commit data...
PopplerMacros.cmake Loading commit data...