Comments (6)
We don't actually use -l pthread, we use -pthread? Of course internally that's going to invoke -l pthread.
What does mcfgthread want in order to be used? I assume it can't possibly require "no extra argument" because then nothing actually instructs the code to use it. And that's a problem unless the compiler internally adds the requisite arguments via the spec file, as pthread is currently handled.
from meson.
We don't actually use -l pthread, we use -pthread? Of course internally that's going to invoke -l pthread.
Ah yes. I was just being silly reading
/nix/store/10lwr6m112g609x4qj8k4awl8pyk4qkh-x86_64-w64-mingw32-binutils-2.40/bin/x86_64-w64-mingw32-ld: cannot find -lpthread: No such file or directory
What does mcfgthread want in order to be used?...
@eli-schwartz To be honest, I am not really sure. I am not passing -lpthread
and I am using std::thread
, etc. The GCC libs are configure-time backed to use mcfgthread
, so maybe that deals with it?
from meson.
What I would hope is that if it's configure-time changed to use mcfgthread then the specs would be changed to link with -l mcfgthread
instead of -l pthread
(it does look like mcfgthread provides a DLL!).
Do you need e.g. -D_REENTRANT
defined in order to use mcfgthread?
from meson.
I don't know because I added mcfgthead to Nixpkgs to get std::thread
in 2019 (?) and other people maintained it since. It is all automatic as far as I can tell :)
from meson.
Now that NixOS/nix#10855 is merged, I think it should be easier to try this out by making the threads dep unconditional and doing nix-build -A packages.x86_64-linux.nix-util-x86_64-w64-mingw32.dev
from meson.
Related Issues (20)
- can't set the c++ standard correctly with newer versions of nvc++
- [Feature] Default options for cmake wraps HOT 1
- meson strips --config from LDFLAGS when it shouldn't HOT 2
- meson setup should always read from environment variables HOT 2
- inconsistent `has_header` check for c-like compilers HOT 1
- MSVC + Rust + C++ + GLM/GLFW3 don't work HOT 1
- Support export_dynamic on macOS
- Documentation: dep.as_system() does not default to 'preserve' but to 'system'
- Error: Un-handled python exception while installing through vcpkg HOT 7
- Allow to summarize test results with respect to test priority
- Swift Linker Check Error
- Meson not generating correct configuration for ninja HOT 6
- [Feature Request]: 'program-transform-name' equivalent
- meson fmt does not handle `else` in nested `if correctly
- BUG: Fixed form flags for Fortran compilers break sanity checks
- BUG: Building a Rust crate from crates.io may fail HOT 1
- Feature/question: Only show the verbose output of failed tests HOT 4
- Prefer $GCC_AR over $AR with gcc? HOT 4
- Unclear default value for unity-size and python.bytecompile in "meson setup --help" output HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meson.