|
|
|
@ -658,7 +658,7 @@
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"cell_type": "code", |
|
|
|
|
"execution_count": 113, |
|
|
|
|
"execution_count": 115, |
|
|
|
|
"id": "e42286bc-085c-45dc-b101-234308e58269", |
|
|
|
|
"metadata": {}, |
|
|
|
|
"outputs": [], |
|
|
|
@ -698,7 +698,7 @@
|
|
|
|
|
" os.remove(\"./simple.exe\")\n", |
|
|
|
|
" compile_cmd = [\"cmd\", \"/c\", VISUAL_STUDIO_2022_TOOLS, \"&\", \"cl\", \"simple.cpp\"]\n", |
|
|
|
|
" if run_cmd(compile_cmd):\n", |
|
|
|
|
" if run_cmd([\"./simple\"]) == \"Hello\":\n", |
|
|
|
|
" if run_cmd([\"./simple.exe\"]) == \"Hello\":\n", |
|
|
|
|
" my_compiler = [\"Windows\", \"Visual Studio 2022\", [\"cmd\", \"/c\", VISUAL_STUDIO_2022_TOOLS, \"&\", \"cl\", f\"{filename_base}.cpp\"]]\n", |
|
|
|
|
" \n", |
|
|
|
|
" if not my_compiler:\n", |
|
|
|
@ -707,7 +707,7 @@
|
|
|
|
|
" os.remove(\"./simple.exe\")\n", |
|
|
|
|
" compile_cmd = [\"cmd\", \"/c\", VISUAL_STUDIO_2019_TOOLS, \"&\", \"cl\", \"simple.cpp\"]\n", |
|
|
|
|
" if run_cmd(compile_cmd):\n", |
|
|
|
|
" if run_cmd([\"./simple\"]) == \"Hello\":\n", |
|
|
|
|
" if run_cmd([\"./simple.exe\"]) == \"Hello\":\n", |
|
|
|
|
" my_compiler = [\"Windows\", \"Visual Studio 2019\", [\"cmd\", \"/c\", VISUAL_STUDIO_2019_TOOLS, \"&\", \"cl\", f\"{filename_base}.cpp\"]]\n", |
|
|
|
|
" \n", |
|
|
|
|
" if not my_compiler:\n", |
|
|
|
@ -727,7 +727,7 @@
|
|
|
|
|
" compile_cmd = [\"clang++\", \"simple.cpp\", \"-o\", \"simple\"]\n", |
|
|
|
|
" if run_cmd(compile_cmd):\n", |
|
|
|
|
" if run_cmd([\"./simple\"]) == \"Hello\":\n", |
|
|
|
|
" my_compiler = [\"Linux\", \"CLang (Clang++)\", [\"clang++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\"]]\n", |
|
|
|
|
" my_compiler = [\"Linux\", \"Clang++\", [\"clang++\", f\"{filename_base}.cpp\", \"-o\", f\"{filename_base}\"]]\n", |
|
|
|
|
" \n", |
|
|
|
|
" if not my_compiler:\n", |
|
|
|
|
" my_compiler=[my_platform, \"Unavailable\", []]\n", |
|
|
|
@ -735,10 +735,10 @@
|
|
|
|
|
" elif my_platform == \"Darwin\":\n", |
|
|
|
|
" if os.path.isfile(\"./simple\"):\n", |
|
|
|
|
" os.remove(\"./simple\")\n", |
|
|
|
|
" compile_cmd = [\"gcc\", \"simple.cpp\"]\n", |
|
|
|
|
" compile_cmd = [\"clang++\", \"-Ofast\", \"-std=c++17\", \"-march=armv8.5-a\", \"-mtune=apple-m1\", \"-mcpu=apple-m1\", \"-o\", \"simple\", \"simple.cpp\"]\n", |
|
|
|
|
" if run_cmd(compile_cmd):\n", |
|
|
|
|
" if run_cmd([\"./simple\"]) == \"Hello\":\n", |
|
|
|
|
" my_compiler = [\"Linux\", \"CLang\", [\"clang++\", \"-Ofast\", \"-std=c++17\", \"-march=armv8.5-a\", \"-mtune=apple-m1\", \"-mcpu=apple-m1\", \"-o\", f\"{filename_base}\", f\"{filename_base}.cpp\"]]\n", |
|
|
|
|
" my_compiler = [\"Linux\", \"Clang++\", [\"clang++\", \"-Ofast\", \"-std=c++17\", \"-march=armv8.5-a\", \"-mtune=apple-m1\", \"-mcpu=apple-m1\", \"-o\", f\"{filename_base}\", f\"{filename_base}.cpp\"]]\n", |
|
|
|
|
" \n", |
|
|
|
|
" if not my_compiler:\n", |
|
|
|
|
" my_compiler=[my_platform, \"Unavailable\", []]\n", |
|
|
|
|