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

use xcrun to run Apple clang #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tizee
Copy link

@tizee tizee commented Apr 10, 2024

I've installed LLVM's clang on my machine and it has higher priority than Apple's clang in shell's PATH. When I run make it would produce following errors:

clang src/skhd.c -std=c99 -Wall -g -O0 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd
In file included from src/skhd.c:30:
src/service.h:136:9: error: call to undeclared function '_NSGetExecutablePath'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (_NSGetExecutablePath(exe_path, &exe_path_size) < 0) {

After I force it to use Apple's clang then the error is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant