Skip to content

Commit

Permalink
Skylark: Improve support for mixing with Python-preprocessing.
Browse files Browse the repository at this point in the history
If a constant is loaded, it can only be passed to a rule/macro.
Operations on it are not allowed.

--
MOS_MIGRATED_REVID=88340341
  • Loading branch information
laurentlb authored and hanwen committed Mar 11, 2015
1 parent 56dd176 commit c359fd0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,3 @@ The following Python features are not supported:
* most builtin functions, most methods


Mixing Skylark and Python-preprocessing
---------------------------------------

Files using Python-preprocessing (it happens in presence of a
`subinclude`) can use Skylark, with the following limitations:

* A file will be loaded only if there is a load in the BUILD file (Bazel
doesn't look at subincluded files to get the dependencies).

* Python-preprocessing happens first. Python code may instantiate Skylark
rules and macros. But Skylark code cannot call a function defined in
Python-preprocessing.

* You can load only Skylark functions (macros, rules), not constants.

0 comments on commit c359fd0

Please sign in to comment.