Compare commits
4 commits
024d9f7ef6
...
2356375ced
| Author | SHA1 | Date | |
|---|---|---|---|
| 2356375ced | |||
| 99102c2c09 | |||
| 06332ac698 | |||
| da2e47ff86 |
3 changed files with 37 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
# Nix/NixOS things
|
# Nix/NixOS things
|
||||||
result
|
result
|
||||||
result-*
|
result-*
|
||||||
|
|
||||||
|
# Clangd cache
|
||||||
|
.cache/clangd
|
||||||
|
|
|
||||||
27
compile_commands.json
Normal file
27
compile_commands.json
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"/nix/store/8nfqxz8d7ramdmc1h7yvnm45cghkknls-devkitARM/devkitARM/bin/arm-none-eabi-gcc",
|
||||||
|
"-g",
|
||||||
|
"-Wall",
|
||||||
|
"-O2",
|
||||||
|
"-mword-relocations",
|
||||||
|
"-ffunction-sections",
|
||||||
|
"-march=armv6k",
|
||||||
|
"-mtune=mpcore",
|
||||||
|
"-mfloat-abi=hard",
|
||||||
|
"-mtp=soft",
|
||||||
|
"-I/home/toast/Documents/Repos/3ds-helloWorld/include",
|
||||||
|
"-I/nix/store/8nfqxz8d7ramdmc1h7yvnm45cghkknls-devkitARM/libctru/include",
|
||||||
|
"-I/home/toast/Documents/Repos/3ds-helloWorld/build",
|
||||||
|
"-D__3DS__",
|
||||||
|
"-c",
|
||||||
|
"-o",
|
||||||
|
"main.o",
|
||||||
|
"/home/toast/Documents/Repos/3ds-helloWorld/source/main.c"
|
||||||
|
],
|
||||||
|
"directory": "/home/toast/Documents/Repos/3ds-helloWorld/build",
|
||||||
|
"file": "/home/toast/Documents/Repos/3ds-helloWorld/source/main.c",
|
||||||
|
"output": "/home/toast/Documents/Repos/3ds-helloWorld/build/main.o"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
@ -16,6 +16,13 @@
|
||||||
name = "3ds-devshell";
|
name = "3ds-devshell";
|
||||||
packages = with nixpkgs.legacyPackages.${system}; [
|
packages = with nixpkgs.legacyPackages.${system}; [
|
||||||
gnumake
|
gnumake
|
||||||
|
clang-tools
|
||||||
|
(
|
||||||
|
writeShellScriptBin "generateClangCompileCommands" ''
|
||||||
|
make clean
|
||||||
|
${bear}/bin/bear -- make
|
||||||
|
''
|
||||||
|
)
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export DEVKITPRO=${devkitARM}
|
export DEVKITPRO=${devkitARM}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue