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

Draft: Attempt at Mac OS compilation #184

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft

Commits on Jun 13, 2024

  1. wip macos

        motiejus@mtwork:/code/bazel-zig-cc$ bazel build  --spawn_strategy=local  --platforms @zig_sdk//libc_aware/platform:macos_aarch64_sdk.13.1 test/c:which_libc
        INFO: Analyzed target //test/c:which_libc (0 packages loaded, 0 targets configured).
        INFO: Found 1 target...
        Target //test/c:which_libc up-to-date:
          bazel-bin/test/c/which_libc
        INFO: Elapsed time: 0.071s, Critical Path: 0.00s
        INFO: 1 process: 1 internal.
        INFO: Build completed successfully, 1 total action
        motiejus@mtwork:/code/bazel-zig-cc$ file bazel-bin/test/c/which_libc
        bazel-bin/test/c/which_libc: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
        motiejus@mtwork:/code/bazel-zig-cc$
    motiejus authored and chrisirhc committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    a9f4ea6 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2024

  1. got some output using 14.2

    But need to go back to see what hacks I added
    chrisirhc committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    adc3cfb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db2b76f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    206507d View commit details
    Browse the repository at this point in the history
  4. linking seems to work

     bazel build  --spawn_strategy=local  --platforms @zig_sdk//libc_aware/platform:macos_aarch64_sdk.14.2 test/c:which_libc --sandbox_debug -s
    
    INFO: Build completed successfully, 4 total actions
    chrisirhc committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    47b1b9e View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Configuration menu
    Copy the full SHA
    1f7c195 View commit details
    Browse the repository at this point in the history
  2. also seems to work

    chrisirhc committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    e60f446 View commit details
    Browse the repository at this point in the history
  3. fix bazel test failure

    chrisirhc committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    012b0f7 View commit details
    Browse the repository at this point in the history
  4. attempt to fix tests

    chrisirhc committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    ddf7d1d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    be7c7cf View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. fix target name

    chrisirhc committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    840b73a View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    1ef74bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    46dfd43 View commit details
    Browse the repository at this point in the history
  3. cleanup code back to not finding the Frameworks folder

    fatal error: 'CFNetwork/CFProxySupport.h' file not found
    chrisirhc committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    15af3a1 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. seems to work again

    hit error: unsupported linker arg: -no_pie
    chrisirhc committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    8c3382e View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. remove expansion

    chrisirhc committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    500b184 View commit details
    Browse the repository at this point in the history
  2. remove deadcode

    chrisirhc committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    162f697 View commit details
    Browse the repository at this point in the history
  3. register corrct name

    chrisirhc committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    4f8b860 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    e1a9f87 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. fix recursive symlink issue

    chrisirhc committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    071666b View commit details
    Browse the repository at this point in the history
  2. fix path to Frameworks

    chrisirhc committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    e5e5d27 View commit details
    Browse the repository at this point in the history
  3. fix path to usr/lib

    chrisirhc committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    bc2fca5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    19e79e2 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    f46d1f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. switch to tar.gz

    chrisirhc committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    d5fe51f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24dce21 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Configuration menu
    Copy the full SHA
    7af1503 View commit details
    Browse the repository at this point in the history