Skip to content

cbe: support more symbol attributes#17180

Merged
andrewrk merged 1 commit intoziglang:masterfrom
mikdusan:issue-17050
Sep 24, 2023
Merged

cbe: support more symbol attributes#17180
andrewrk merged 1 commit intoziglang:masterfrom
mikdusan:issue-17050

Conversation

@mikdusan
Copy link
Member

@mikdusan mikdusan commented Sep 17, 2023

implement codegen for:

  • decl weak linkage
  • decl aliases
  • fn decl weak linkage

windows:

  • __declspec(selectany) is not supported for functions
  • skip weak linkage for functions

closes #17050

@mikdusan mikdusan added os-macos macOS backend-c The C backend (CBE) outputs C source code. labels Sep 17, 2023
@mikdusan mikdusan requested a review from jacobly0 September 17, 2023 19:08
@mikdusan mikdusan force-pushed the issue-17050 branch 2 times, most recently from cbfa4b7 to c440027 Compare September 23, 2023 20:50
implement codegen for:

- decl weak linkage
- decl aliases
- fn decl weak linkage

windows msvc:
- `__declspec(selectany)` is not supported for functions
- skip weak linkage for functions

closes ziglang#17050
@andrewrk
Copy link
Member

I removed the zig1 update commit for now - will do that presently in #17253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend-c The C backend (CBE) outputs C source code. os-macos macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failed on macOS Sonoma with Xcode 15: zig2 duplicate symbol __mh_execute_header

3 participants