Skip to content

Using clang-cl on Windows #6464

@gvanem

Description

@gvanem

I see that the sources have some tests in __clang__. But building with clang-cl (the MSVC-driver = clang --driver-mode=cl)
seems unsupported. E.g. on trying to compile examples/embedding/hello-embed.c:

examples/embedding/hello-embed.c(68,6): error: conflicting types for 'mp_import_stat'
uint mp_import_stat(const char *path) {
     ^
.\py/lexer.h(194,18): note: previous declaration is here
mp_import_stat_t mp_import_stat(const char *path);
                 ^

Casting an enum mp_import_stat_t to an uint. What's going on?
I've never thought that was legal.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy