diff --git a/util/LLgen/src/gencode.c b/util/LLgen/src/gencode.c index c3c6d36e6..0c24f74f2 100644 --- a/util/LLgen/src/gencode.c +++ b/util/LLgen/src/gencode.c @@ -1510,5 +1510,11 @@ STATIC void correct_prefix(void) fprintf(f, "#define LLstartsymb %sstartsymb\n", s); #endif } - fprintf(f, "#include \"%s\"\n", f_include); + + string leaf = strrchr(f_include, '/'); + if (leaf) + leaf++; + else + leaf = f_include; + fprintf(f, "#include \"%s\"\n", leaf); }