Skip to content

BEP requires -ffile-prefix-map which is available in GCC 8 onwards #38

@feng-jianwei

Description

@feng-jianwei

# define BOOST_CURRENT_LOCATION ::boost::source_location(__builtin_FILE(), __builtin_LINE(), __builtin_FUNCTION())

Although __builtin_FILE () is available in gcc7, -ffile-prefix-map is not supported in gcc7. When the gcc7 version is used in a project, there will be bep consistency problems. It is recommended to increase the version number in the macro.
patch:
-#elif defined(BOOST_GCC) && BOOST_GCC >= 70000
+#elif defined(BOOST_GCC) && BOOST_GCC >= 80000

-// The built-ins are available in 4.8+, but are not constant expressions until 7
+// The built-ins are available in 4.8+, but BEP requires -ffile-prefix-map which is available in GCC 8 onwards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions