Skip to content

Compilation for ESP32 on XTENSA architecture #1598

@nkolban

Description

@nkolban

In the current build environment for libcurl, we find the file called:

curl/include/curl/system.h

contains environmental definitions. In my environment, I wish to build on the ESP32 MCU which uses the XTENSA chip set/architecture. GCC on this environment supplies the pre-defined macro called __XTENSA__. This issue requests a change of the source in system.h from this:

#elif defined(__GNUC__)
#  if !defined(__LP64__) && (defined(__ILP32__) || \
      defined(__i386__) || defined(__ppc__) || defined(__arm__) || \
      defined(__sparc__) || defined(__mips__) || defined(__sh__))

and change to:

#elif defined(__GNUC__)
#  if !defined(__LP64__) && (defined(__ILP32__) || \
      defined(__i386__) || defined(__ppc__) || defined(__arm__) || \
      defined(__sparc__) || defined(__mips__) || defined(__sh__) || defined(__XTENSA__))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions