I found a hack lets to run HelloWorld: 
    
    
    XPATH = PATH=$(TOOLCHAIN)/bin:$(HOME)/.nimble/bin STAGING_DIR=$(STAGING)
    hello_nim: src/hello.nim src/nim.cfg Makefile
            $(XPATH) nim c -o:$@ $<
            @file $@ ; ls -la $@
            @$(XPATH) $(SZ) -x $@
            @$(XPATH) $(OD) -x $@ | grep -i GLIBC
    
    
    Run
    
    
    --gcc.exe:"mipsel-openwrt-linux-musl-gcc"
    --gcc.linkerexe:"mipsel-openwrt-linux-musl-gcc"
    # --passC=...disabled
    # --passL=..disabled
    
    
    Run

[https://github.com/ponyatov/nims/tree/239fee6f82fd0f3b542800e75e405771b8b534e9/mips](https://github.com/ponyatov/nims/tree/239fee6f82fd0f3b542800e75e405771b8b534e9/mips)

Reply via email to