Skip to content

build-failure with Clang/LLVM-6.0 on Windows using clang++.exe #44

Closed
@degski

Description

@degski

config.hpp:166: #if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__)) causes build-failure, due to fact that clang defines __GNUC__ and _WIN32, which implies MinGW or Cygwin, and therefore includes not available dirent.h in fileiter.hpp:76.

changing config.hpp:166 to: #if defined(__GNUC__) && !defined(__clang__) && (defined(_WIN32) || defined(__CYGWIN__))

allows regex to build with Clang/LLVM-6.0 on Windows using clang++.exe.

EDIT: Still not a final solution, as this leaves Windows + Clang + MinGW in the lurch...

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