Skip to content

Gated out #include directives in JS libraries are still included #5458

@juj

Description

@juj

liba.js

#if 0
#include "libnonexisting.js"
#include "libb.js"
#endif

libb.js

syntax error here

Command line: emcc tests/hello_world.c --js-library liba.js -o a.html

Should be valid and build without errors, but currently fails with

Error: ENOENT: no such file or directory, open 'C:\code\emsdk\emscripten\incoming\src\libnonexisting.js'

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