Skip to content

missing preprocessor definitions in LLVM_CFLAGS/LLVM_CXXFLAGS #4254

@llvmbot

Description

@llvmbot
Bugzilla Link 3882
Resolution FIXED
Resolved on Feb 22, 2010 12:56
Version 2.5
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl,@oscarfv

Extended Description

In order to be able to compile something using the LLVM header files it is neccessary (at least on GCC + GNU/Linux) that some preprocessor definitions are included:

-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS

When using the autoconf-based build system in LLVM 2.4 these where properly defined. With the cmake-based system (which is otherwise very good and integrates nicely in OpenEmbedded) these definitions are missing causing build errors in projects that compile against the LLVM headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacmakeBuild system in general and CMake in particular

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions