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

Locks modules should give a compile error when threads are not enabled. #12231

Merged
merged 3 commits into from
Sep 26, 2019

Conversation

rayman22201
Copy link
Contributor

Before, it would let you compile, and then throw a linker error with no threads.
This make Locks module work like Threads and Threadpool.
Just a small Quality of Life fix.

@Araq Araq merged commit 9dd297f into nim-lang:devel Sep 26, 2019
shaoxie1986 pushed a commit to shaoxie1986/Nim that referenced this pull request Sep 27, 2019
…d. (nim-lang#12231)

* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
rayman22201 added a commit to rayman22201/Nim that referenced this pull request Oct 4, 2019
…d. (nim-lang#12231)

* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
alehander92 pushed a commit to alehander92/Nim that referenced this pull request Oct 23, 2019
…d. (nim-lang#12231)

* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
alehander92 pushed a commit to alehander92/Nim that referenced this pull request Dec 2, 2019
…d. (nim-lang#12231)

* Locks modules should give a compile error when threads are not enabled.

* fix the compile flags to make the tests pass, or ignore files where necessary.

* Fixed when statement to account for doc builds.
@timotheecour
Copy link
Member

@rayman22201 what link error did it give? Do you have a minimized example? the PR description is too vague.

Before, it would let you compile, and then throw a linker error with no threads.
This make Locks module work like Threads and Threadpool.
Just a small Quality of Life fix.

@rayman22201
Copy link
Contributor Author

@rayman22201 what link error did it give? Do you have a minimized example? the PR description is too vague.

Before, it would let you compile, and then throw a linker error with no threads.
This make Locks module work like Threads and Threadpool.
Just a small Quality of Life fix.

This was over a year and half ago. I don't remember exactly, and the PR has already long been merged. Why resurrect it now? It was the same as if you compiled a C program that used pthreads and did not add -lpthreads to your gcc flags.

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.

3 participants