Skip to content

Clang on Windows breaks debugger symbols #113

@angelfor3v3r

Description

@angelfor3v3r

I'm doing static builds on Windows using the Clang compiler but my debug symbols are broken because the Library does this stuff:
https://github.com/bitdefender/bddisasm/blob/master/CMakeLists.txt#L47-L76

Specifically, it adds stuff like:

        -fstack-protector-strong
        -fno-omit-frame-pointer
        -ffunction-sections
        -fdata-sections
        -g3
        -gdwarf-4
        -grecord-gcc-switches
        -march=native

As compile options, which conflict with my own debug format on my own target. Yet, When targeting Windows MSVC it only adds stuff like: /W4 /WX, which wont conflict with other compiler options (since the lib file is using different options). Specifically, the one causing it is -gdwarf-4 but the other options (like -march=native) make me scared that it'll ruin static builds if I try to release binaries of my own apps.

Would it make more sense for the main library target to only add compile options for warnings and all that?

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