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

Extract shell fragments into a toolchain #196

Merged
merged 10 commits into from
Jan 18, 2019

Conversation

irengrig
Copy link
Contributor

@irengrig irengrig commented Jan 9, 2019

Construct script in framework.bzl using special notation for calling
shell fragments, defining and referencing environment variables;
have the script converted from this special notation into a real script
(see README.md notes.)
The special notation is used to keep script construction in code still readable.

Tools scripts (cmake, ninja) were also converted.

Buildkite tests: https://buildkite.com/bazel/rules-foreign-cc/builds/170

Construct script in framework.bzl using special notation for calling
shell fragments, defining and referencing environment variables;
have the script converted from this special notation into a real script
(see README.md notes.)
The special notation is used to keep script construction in code still readable.

Tools scripts (cmake, ninja) were also converted.
@irengrig irengrig requested a review from dslomov January 9, 2019 09:21
- mark functions from shell toolchain as ##funname##, so that they
can not be mixed with usual shell functions
@irengrig
Copy link
Contributor Author

Thank you for the review, please see the changes.
[Some of the comments were discussed offline]

into the script. Use heuristics to use /usr/bin/find if it exists.
Also, use pwd -W to get Windows-styled paths (for cmake)
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