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

per-target clang configurations #140

Merged
merged 16 commits into from
May 22, 2024
Merged

per-target clang configurations #140

merged 16 commits into from
May 22, 2024

Conversation

vekatze
Copy link
Owner

@vekatze vekatze commented May 22, 2024

Before:

// module.ens
{
  target {
    foo "foo.nt"
  }
  // ...
}
neut build foo --clang-option "-fsanitize=address ..."

After:

// module.ens
{
  target {
    foo {
      main "foo.nt",
      build-option [
        "-fsanitize=address",
        "$(pkg-config libpq --libs --cflags)" // or whatever
      ],
    }
  }
  // ...
}
neut build foo

@vekatze vekatze self-assigned this May 22, 2024
@vekatze vekatze marked this pull request as ready for review May 22, 2024 12:00
@vekatze vekatze merged commit 63df71b into main May 22, 2024
1 check passed
@vekatze vekatze deleted the enhanced-targets branch May 22, 2024 12:03
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.

None yet

1 participant