Created
December 14, 2023 03:30
-
-
Save bjconlan/fcf51764cc29d1ef8ca0c2cffd497fb3 to your computer and use it in GitHub Desktop.
Cosmopolitan VSCode C/C++ Extension configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Magic forcedInclude thanks to the author (https://github.com/jart/cosmopolitan/blob/master/.vscode/c_cpp_properties.json) | |
{ | |
"env": { | |
"cosmoccPath": "${HOME}/.local/opt/cosmocc" | |
}, | |
"configurations": [ | |
{ | |
"name": "Cosmopolitan", | |
"compilerPath": "${cosmoccPath}/bin/x86_64-unknown-cosmo-cc", | |
"forcedInclude": [ | |
"${cosmoccPath}/include/libc/integral/normalize.inc" | |
] | |
} | |
], | |
"version": 4 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "C Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/a.out", | |
"cwd": "${workspaceFolder}" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.associations": { | |
"*.h": "c" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment