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

Build flag management #202

Merged
merged 8 commits into from
Apr 28, 2020
Merged

Build flag management #202

merged 8 commits into from
Apr 28, 2020

Conversation

dtebbs
Copy link
Contributor

@dtebbs dtebbs commented Apr 21, 2020

No description provided.

@dtebbs dtebbs changed the base branch from master to develop April 21, 2020 17:08
@dtebbs
Copy link
Contributor Author

dtebbs commented Apr 22, 2020

Addresses #198

Overview:

  • build all dependencies with their own compile flags
  • mark dependencies as SYSTEM, so that warnings in dependencies are not reported in the zeth build
  • build all zeth code with -Wall -Wextra
  • enable -Werror on CI server

(Note, the rationale here is that during development it can be useful to allow some warnings, but warnings should be caught in pushed code. We can moify this if there are differing opinions.)

@dtebbs dtebbs changed the title WIP: Build flags Build flag management Apr 22, 2020
@dtebbs dtebbs force-pushed the build-flags branch 3 times, most recently from c100625 to d7683a0 Compare April 23, 2020 20:36

namespace
{

fs::path g_testdata_dir = fs::path("..") / "testdata";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be possible to use an environment variable here? Otherwise we need to assume that the tests are written from a specific location (else, we end up writing testdata in the user's filesystem)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, just realized that you overwrote this global variable before running the tests..

@AntoineRondelet AntoineRondelet merged commit dc7c19d into develop Apr 28, 2020
AntoineRondelet added a commit that referenced this pull request May 6, 2020
@AntoineRondelet AntoineRondelet deleted the build-flags branch May 7, 2020 19:02
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.

2 participants