Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Handle compile commands with shell callouts. #1

Open
dschaefer opened this issue Jan 23, 2019 · 0 comments
Open

Handle compile commands with shell callouts. #1

dschaefer opened this issue Jan 23, 2019 · 0 comments

Comments

@dschaefer
Copy link
Contributor

Looking at an example on Linux that uses pkg-config. The command line is:

gcc -std=c99 -Wall -Werror -o Release/cefcapi-gtk3 -I. -I.. -Wl,-rpath,. -L./Release examples/main_linux.c -lX11 -lcef pkg-config --libs --cflags gtk+-3.0

We need to expand what pkg-config returns before putting it in the compile_commands.json file. (Or do we? Make sure this works anyway).

An easy way to do that is to stick 'echo ' in front of it and send it to the shell for execution.

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

No branches or pull requests

1 participant