Skip to content

Instantly share code, notes, and snippets.

@bjconlan
Created December 14, 2023 03:30
Show Gist options
  • Save bjconlan/fcf51764cc29d1ef8ca0c2cffd497fb3 to your computer and use it in GitHub Desktop.
Save bjconlan/fcf51764cc29d1ef8ca0c2cffd497fb3 to your computer and use it in GitHub Desktop.
Cosmopolitan VSCode C/C++ Extension configuration
// 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
}
{
"version": "0.2.0",
"configurations": [
{
"name": "C Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"cwd": "${workspaceFolder}"
}
]
}
{
"files.associations": {
"*.h": "c"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment