From 15bc505e3f36441e9be6ff31b46650406bf45272 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 7 Jun 2013 13:43:20 -0400 Subject: [PATCH] Allow "-I /some/where" include style. --- pyopencl/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/cache.py b/pyopencl/cache.py index 979a5258..0db15d6e 100644 --- a/pyopencl/cache.py +++ b/pyopencl/cache.py @@ -331,7 +331,7 @@ def _create_built_program_from_source_cached(ctx, src, options, devices, cache_d include_path.append(options[option_idx+1]) option_idx += 2 else: - include_path.append(option[2:]) + include_path.append(option[2:].lstrip()) option_idx += 1 else: option_idx += 1 -- GitLab