Merge pull request #64 from cloudllama/ren_linux_to_mac
Correctly identify Mac as a Mac not Linux
This commit is contained in:
@@ -760,7 +760,7 @@
|
|||||||
" compile_cmd = [\"clang++\", \"-Ofast\", \"-std=c++17\", \"-march=armv8.5-a\", \"-mtune=apple-m1\", \"-mcpu=apple-m1\", \"-o\", \"simple\", \"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(compile_cmd):\n",
|
||||||
" if run_cmd([\"./simple\"]) == \"Hello\":\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 = [\"Macintosh\", \"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",
|
" \n",
|
||||||
" if not my_compiler:\n",
|
" if not my_compiler:\n",
|
||||||
" my_compiler=[my_platform, \"Unavailable\", []]\n",
|
" my_compiler=[my_platform, \"Unavailable\", []]\n",
|
||||||
@@ -839,7 +839,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.11"
|
"version": "3.11.10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|||||||
Reference in New Issue
Block a user