Skip to content
This repository has been archived by the owner on Aug 30, 2020. It is now read-only.

Pass $(CC) as make parameter, not environment variable #97

Open
bstaletic opened this issue Feb 6, 2017 · 0 comments
Open

Pass $(CC) as make parameter, not environment variable #97

bstaletic opened this issue Feb 6, 2017 · 0 comments

Comments

@bstaletic
Copy link

Passing $(CC) as env variable is not effective when Makefile overrides $(CC).

If $(CC) is passed as parameter instead, make will override the setting from Makefile, which would allow YCM-Generator to be used in a greater number of projects.

So, make resolves variables according to the following priority order:

  • Parameters passed to make
  • Variables set inside Makefile itself
  • Environment variables

The same goes for all other variables that YCM-Generator uses, not just $(CC).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant