Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpcgen: follow the CPP and RPCGEN_CPP enviromental variables #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Artturin
Copy link

@Artturin Artturin commented Sep 11, 2022

cpp may be target prefixed
and it may cause issues in other programs if CPP is set

@Artturin Artturin changed the title rpcgen: follow the CPP enviromental variable rpcgen: follow the CPP and RPCGEN_CPP enviromental variables Sep 11, 2022
cpp may be target prefixed
and it may cause issues in other programs if CPP is set
Comment on lines +351 to +356
if ((CPP = getenv("RPCGEN_CPP")) != NULL)
return;

if ((CPP = getenv("CPP")) != NULL)
return;

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like with the user provided cpp path (via -Y argument) some lines above, it should be checked that the environment variable is correct and cpp exists.

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

Successfully merging this pull request may close these issues.

2 participants