From e608d2aac89f8284ec246841fc781a30580a5b66 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Tue, 28 Mar 2023 21:27:11 +0200 Subject: [PATCH] Fix shor_path issue GitOrigin-RevId: ef557158a463134e4d225378edef7012b8114fdb --- ispc.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ispc.bzl b/ispc.bzl index 5c9f63b..36308bc 100644 --- a/ispc.bzl +++ b/ispc.bzl @@ -29,8 +29,8 @@ def _ispc_cc_library_impl(ctx): if default_target_os != "windows": args.add("--pic") - - args.add(ctx.file.ispc_main_source_file.short_path) + + args.add(ctx.file.ispc_main_source_file) args.add("--header-outfile=%s" % ctx.outputs.out.path) args.add("-o", object) @@ -50,7 +50,7 @@ def _ispc_cc_library_impl(ctx): DefaultInfo(files = depset(direct=[object])), ] -ispc_library2 = rule( +ispc_library = rule( implementation = _ispc_cc_library_impl, doc = """Compiles a ISPC program and makes it available as a C++ library @@ -84,7 +84,7 @@ This rule uses a precompiled version of ISPC v1.19.0 for compilation.""", ) def ispc_cc_library(name, out, ispc_main_source_file, srcs, defines = [], **kwargs): - ispc_library2( + ispc_library( name = "%s_ispc_gen" % name, out = out, ispc_main_source_file = ispc_main_source_file,