return -1;
}
+ naive_replace (cpath_real, '\\', '/');
+
+ // not escaping here, windows has quotes
+
snprintf (build_opts, sizeof (build_opts) - 1, "-I \"%s\"", cpath_real);
myfree (cpath_real);
return -1;
}
- char cpath_escaped[1024] = { 0 };
+ naive_escape (cpath_real, PATH_MAX, ' ', '\\');
- naive_escape (cpath_real, cpath_escaped, sizeof (cpath_escaped));
+ snprintf (build_opts, sizeof (build_opts) - 1, "-I %s", cpath_real);
myfree (cpath_real);
- snprintf (build_opts, sizeof (build_opts) - 1, "-I %s", cpath_escaped);
-
#endif
// we don't have sm_* on vendors not NV but it doesn't matter