Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(This is how you) Support the Nintendo 3DS #1951

Open
AlexBigCheese opened this issue Feb 16, 2024 · 0 comments
Open

(This is how you) Support the Nintendo 3DS #1951

AlexBigCheese opened this issue Feb 16, 2024 · 0 comments

Comments

@AlexBigCheese
Copy link

in build.rs you'll want

AsmTarget {
        oss: &["horizon"],
        arch: ARM,
        perlasm_format: "linux32",
        asm_extension: "S",
        preassemble: false
    },

and you'll want to add horizon to the src/rand.rs:135

environment variables that seem to make it work:

export DEVKITPRO=/opt/devkitpro/
export DEVKITARM=/opt/devkitpro/devkitARM/
export TARGET_CC=/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc
export CFLAGS_armv6k_nintendo_3ds="-march=armv6k -mfloat-abi=hard -finline-limit=100000"
export CC=/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc

This enables you to use minreq to make https requests on the 3DS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant