Skip to content

Default to not warn about absolute include paths. #2713

Closed

Description

@juj

Currently emcc issues a warning by default if user passes a command line directive -I/some/absolute/path. This was added to be more user-friendly towards people porting existing build systems which might unconditionally pass include directives to the system include directories that have headers specific to the native host system, which are not meant for Emscripten.

However this default behavior makes emcc a bit unconformant compared to gcc/clang/MSVC and all projects must manually disable the warning if they prefer to pass absolute include directories. Talking on IRC, we decided that we should prefer to be conformant, and default to not showing a warning here. Instead, for developers that are starting up a port project of a new codebase, they can pass `-Wwarn-absolute-paths' to enable the warning if needed. We should add a mention of this aid in a porting guide somewhere in the docs.

Activity

  1. self-assigned this
    on Aug 25, 2014
  2. juj commented on Mar 31, 2016

    @juj
    CollaboratorAuthor

    This was implemented in above PR quite some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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