-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Missing __cpu_indicator_init
and __cpu_model
in compiler-rt
#18074
Comments
These symbols are defined in compiler-rt in LLVM: https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/cpu_model.c Also, maybe related to #4591. |
only for those targets: #if (defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) || \
defined(_M_X64)) && \
(defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER))
aarch64 and other platforms use different symbols/strategies. |
Exporting the symbols should be rather straightforward, since the x86 and x86_64 feature detection is already implemented. See #4591 (comment). |
@lacc97 Do you want to take a shot at it? |
Sure I'll give it a shot. |
Zig Version
0.12.0-dev.1685+994e19164
Steps to Reproduce and Observed Behavior
Trying to compile a C file where a function has
target_clone
attribute fails. e.g. fortargets.c
:Running
fails with
Expected Behavior
This should compile successfully.
The text was updated successfully, but these errors were encountered: