Bazel: Simplify prolog_cafe_library rule implementation
genrule2 exposes root and temp directpries, but these are not used in this rule, so that we can just use native genrule. Change-Id: Id1e56ba47bf04a73559ff84a7c8f69745a6b3129
This commit is contained in:
		@@ -12,14 +12,12 @@
 | 
			
		||||
# See the License for the specific language governing permissions and
 | 
			
		||||
# limitations under the License.
 | 
			
		||||
 | 
			
		||||
load("//tools/bzl:genrule2.bzl", "genrule2")
 | 
			
		||||
 | 
			
		||||
def prolog_cafe_library(
 | 
			
		||||
    name,
 | 
			
		||||
    srcs,
 | 
			
		||||
    deps = [],
 | 
			
		||||
    **kwargs):
 | 
			
		||||
  genrule2(
 | 
			
		||||
  native.genrule(
 | 
			
		||||
    name = name + '__pl2j',
 | 
			
		||||
    cmd = '$(location //lib/prolog:compiler_bin) ' +
 | 
			
		||||
      '$$(dirname $@) $@ ' +
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user