Skip to content

USE_BOOST_HEADERS is incorrectly persistent #26467

@mmarczell-graphisoft

Description

@mmarczell-graphisoft

If you ever once issue a compilation command with -sUSE_BOOST_HEADERS, Boost somehow ends up on the include path of every subsequent compilation. This is unexpected and incorrect, as for example one might want to use a different version of Boost than what is included, leading to incompatibilities or confusing errors.

Reproducing minimal repo at: mmarczell-graphisoft/embug@d846c9e

Reproduction CI run at: https://github.com/mmarczell-graphisoft/embug/actions/runs/23202095356/job/67427039648#step:4:1

Version of emscripten/emsdk:
5.0.3

Failing command line in full:

em++ main.cpp # this fails, correctly 
em++ -sUSE_BOOST_HEADERS main.cpp # this succeeds correctly
em++ main.cpp # this succeeds incorrectly
Pinned by sbc100

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