Skip to content
Snippets Groups Projects
Commit 5a821b79 authored by Martin Lang's avatar Martin Lang
Browse files

Update manual_cpp: convert dashes in tmp_filename to underscores

tmp_filename is cropped to the last 250 characters. If the first character after cropping happens do be a dash the compiler will interpret it as a flag and not the argument passed to `-o` resulting in a compilation failure (missing arguments).
parent 4ecd2820
No related branches found
No related tags found
2 merge requests!202Update manual_cpp: convert dashes in tmp_filename to underscores,!201Update manual_cpp: convert dashes in tmp_filename to underscores
......@@ -70,6 +70,7 @@ try:
except ValueError:
pass
tmp_filename = tmp_filename.replace("-", "_")
tmp_filename = tmp_filename[-250:]
if (ext==".cu"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment