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

compile_commands.json throws an empty array as output with specific makefile configuration #640

Open
Luki120 opened this issue Mar 11, 2022 · 0 comments

Comments

@Luki120
Copy link

Luki120 commented Mar 11, 2022

What are the steps to reproduce this issue?

  1. Make a new project and for the FILES flag, try to search to any depth like so
ProjectName_FILES = $(shell find . -name "*.m") $(shell find . -name "*.swift")
  1. Run make commands

What happens?

The compile_commands.json file will output an empty array due to the . specified for shell find, the workaround for this is to change the . for a *. Cause of the issue:

The issue here is the ./ that find prepends to the filenames when the relative path . is specified as the directory. A * can be used instead to avoid the prepend since none of the source files would be hidden.

What were you expecting to happen?

To get a normal output for compile_commands.json

Paste any relevant logs, error output, etc.

Additional context

  • I was asked to open this issue based off on a conversation on the Theos server.

What OS are you seeing the problem on?

Linux/WSL

What OS version does it have installed?

Kubuntu 21.04 x86_64

What toolchain and version are you using?

Swift 5.3.2 from CRKatri

Which SDK version are you using?

iOS 14.5

What OS is your client device running?

iOS

What OS version does it have installed?

14.5.1

Which device model is it?

iPod Touch 7th generation

Which jailbreak is it using (if relevant)?

checkra1n

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