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

Makefile hard coded to use clang #13

Open
micolous opened this issue Sep 20, 2021 · 0 comments
Open

Makefile hard coded to use clang #13

micolous opened this issue Sep 20, 2021 · 0 comments

Comments

@micolous
Copy link

The Makefiles for caption-inspector appear to be all hard coded to use clang:

${CI_EXECUTABLE}: $(OBJS_WITH_PATH) main.o
@echo "\n*** Compiling Caption Inpsector Executible. ***"
clang -o ${CI_EXECUTABLE} ../obj/main.o $(OBJS_IN_OBJ_DIR) $(LD_FLAGS) $(LD_FLAGS_FFMPEG)
no_ffmpeg: $(OBJS_WITH_PATH) main.o
@echo "\n*** Compiling Caption Inpsector Executible without FFMPEG. ***"
clang -o ${CI_EXECUTABLE} ../obj/main.o $(OBJS_IN_OBJ_DIR) $(LD_FLAGS)

This project builds fine on gcc 9.3 too.

One can use the implicit variable $(CC) to get whatever the user-preferred compiler (and its location) is. It also makes it easier to set up a CI build matrix with other compilers.

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

No branches or pull requests

1 participant