Browse Source

Merge pull request #64 from cloudllama/ren_linux_to_mac

Correctly identify Mac as a Mac not Linux
pull/66/head
Ed Donner 5 months ago committed by GitHub
parent
commit
849a63f484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      week4/day4.ipynb

4
week4/day4.ipynb

@ -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,

Loading…
Cancel
Save