www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd and pkg-config

Since "dmd.conf" has specific flags depending on word size generated by dmd, is
there any way to know this state i.e. like an environment variable?

"pkg-config" command is an easy way to give the compiler the right flags for an
specific library. Now these flags are for both, 32 and 64 bit. If "pkg-config"
was able to know this information, then will first search on the right library
path by setting PKG_CONFIG_PATH environment variable, avoiding the use of
"--no-warn-search-mismatch" flag and becoming in a faster linking.

Another solution should be include the "pkg-config" functionality into the
compiler itself.

Jordi Sayol
May 12 2014