From 52559a9bb808e2628458ddcc9eaf67590f0d0852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 8 Jun 2021 07:01:34 +0300 Subject: [PATCH] comment out macos for now --- .build.yml | 16 ++++++++++------ README.md | 17 +++++++++++++---- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.build.yml b/.build.yml index de41c4e..7afd04c 100644 --- a/.build.yml +++ b/.build.yml @@ -13,11 +13,15 @@ tasks: - test_default: | cd bazel-zig-cc; ../bazel run --toolchain_resolution_debug=true \ //test:gognu - - test_musl: | + - test_linux-gnu: | cd bazel-zig-cc; ../bazel run --toolchain_resolution_debug=true \ - --platforms @com_github_ziglang_zig//:platform_linux-x86_64-musl \ - //test:gomusl - - test_gnu: | - cd bazel-zig-cc; ../bazel run --toolchain_resolution_debug=true \ - --platforms @com_github_ziglang_zig//:platform_linux-x86_64-gnu \ + --platforms @com_github_ziglang_zig//:platform_x86_64-linux-gnu \ //test:gognu + - test_linux-musl: | + cd bazel-zig-cc; ../bazel run --toolchain_resolution_debug=true \ + --platforms @com_github_ziglang_zig//:platform_x86_64-linux-musl \ + //test:gomusl + #- test_macos-gnu: | + # cd bazel-zig-cc; ../bazel build --toolchain_resolution_debug=true \ + # --platforms @com_github_ziglang_zig//:platform_x86_64-macos-gnu \ + # //test:gognu diff --git a/README.md b/README.md index 86d48fe..99b6faf 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ these basic constraints: # Testing -## cgo + glibc 2.19 +## linux cgo + glibc 2.19 Using the default toolchain: @@ -31,15 +31,15 @@ $ file ../bazel-bin/test/gognu_/gognu ../bazel-bin/test/gognu_/gognu: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.0.0, Go BuildID=redacted, with debug_info, not stripped ``` -Explicitly specifying `-gnu`: +Explicitly the toolchain explicitly `-gnu`: ``` $ bazel run --platforms @com_github_ziglang_zig//:platform_x86_64-linux-gnu //test:gognu ``` -## cgo + musl +## linux cgo + musl ``` -$ bazel build --platforms @com_github_ziglang_zig//:platform_x86_64-linux-musl :gomusl +$ bazel build --platforms @com_github_ziglang_zig//:platform_x86_64-linux-musl //test:gomusl ... $ file ../bazel-out/k8-fastbuild-ST-d17813c235ce/bin/test/gomusl_/gomusl ../bazel-out/k8-fastbuild-ST-d17813c235ce/bin/test/gomusl_/gomusl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=redacted, with debug_info, not stripped @@ -47,6 +47,15 @@ $ ../bazel-out/k8-fastbuild-ST-d17813c235ce/bin/test/gomusl_/gomusl hello, world ``` +## macos cgo + gnu + +Does not work? + +``` +$ bazel build --platforms @com_github_ziglang_zig//:platform_x86_64-macos-musl //test:gognu +... +``` + ## Transient docker environment ```