Fixed g++ compilation command
This commit is contained in:
@@ -513,10 +513,10 @@
|
|||||||
" elif my_platform == \"Linux\":\n",
|
" elif my_platform == \"Linux\":\n",
|
||||||
" if os.path.isfile(\"./simple\"):\n",
|
" if os.path.isfile(\"./simple\"):\n",
|
||||||
" os.remove(\"./simple\")\n",
|
" os.remove(\"./simple\")\n",
|
||||||
" compile_cmd = [\"gcc\", \"simple.cpp\"]\n",
|
" compile_cmd = [\"g++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\" ]\n",
|
||||||
" if run_cmd(compile_cmd):\n",
|
" if run_cmd(compile_cmd):\n",
|
||||||
" if run_cmd([\"./simple\"]) == \"Hello\":\n",
|
" if run_cmd([\"./simple\"]) == \"Hello\":\n",
|
||||||
" my_compiler = [\"Linux\", \"GCC\", [\"gcc\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\"]]\n",
|
" my_compiler = [\"Linux\", \"GCC\", [\"g++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\" ]]\n",
|
||||||
" \n",
|
" \n",
|
||||||
" if not my_compiler:\n",
|
" if not my_compiler:\n",
|
||||||
" if os.path.isfile(\"./simple\"):\n",
|
" if os.path.isfile(\"./simple\"):\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user