FiloSottile / homebrew-musl-cross

Homebrew Formula for static-friendly musl-based GCC macOS-to-Linux cross-compilers
https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
ISC License
547 stars 45 forks source link

Symlink headers too #10

Closed ghost closed 5 years ago

ghost commented 5 years ago

Symlink Linux headers for easy access to updated version in IDEs configuration So we don't have to change "/usr/local/Cellar/musl-cross/0.9.7_1/libexec/x86_64-linux-musl/include" after every update

VSCode "c_cpp_properties.json"

    {
        "name": "Linux",
        "includePath": [
            "/usr/local/opt/musl-cross/libexec/include",
            "${workspaceFolder}"
        ],
ghost commented 5 years ago

Oops, I didn't notice that different target headers were already symlinked in

/usr/local/opt/musl-cross/libexec/x86_64-linux-musl/include
/usr/local/opt/musl-cross/libexec/i486-linux-musl/include