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: TBB is a dependency of bin helpers #1209

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

WardBrian
Copy link
Member

Submisison Checklist

  • Run tests: ./runCmdStanTests.py src/test
  • Declare copyright holder and open-source license: see below

Summary:

Currently, running make bin/stansummary without first running make build fails, because these link TBB but do not have it marked as a dependency.

This can, rarely, cause make build to fail, like in CI here: https://jenkins.flatironinstitute.org/blue/organizations/jenkins/Stan%2FStan/detail/downstream_tests/366/pipeline

Intended Effect:

Fix make bin/stansummary

How to Verify:

Side Effects:

Documentation:

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Simons Foundation

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@@ -2,13 +2,13 @@ ifeq ($(CMDSTAN_SUBMODULES),1)
bin/cmdstan/stansummary.o : src/cmdstan/stansummary_helper.hpp
bin/cmdstan/%.o : src/cmdstan/%.cpp
@mkdir -p $(dir $@)
$(COMPILE.cpp) -fvisibility=hidden $(OUTPUT_OPTION) $(LDLIBS) $<
$(COMPILE.cpp) -fvisibility=hidden $< $(OUTPUT_OPTION)
Copy link
Member

Choose a reason for hiding this comment

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

Was this change intended? I think it's a good change: the use of libs shouldn't be necessary when compiling, only linking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it currently generates warnings for unused arguments, so I removed it

@WardBrian WardBrian requested a review from syclik October 3, 2023 16:11
@syclik
Copy link
Member

syclik commented Oct 3, 2023

Awesome. Approved.

@WardBrian WardBrian merged commit fe79d9e into develop Oct 3, 2023
@WardBrian WardBrian deleted the fix/make-command-deps branch October 3, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants