public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Use cygwin to run autotools for MSVC?
       [not found] <537493096.2714240.1585254646086.ref@mail.yahoo.com>
@ 2020-03-26 20:30 ` Mike Gran
  2020-03-26 21:37   ` Csaba Raduly
  2020-03-27 12:48   ` Peter Dons Tychsen
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Gran @ 2020-03-26 20:30 UTC (permalink / raw)
  To: Cygwin List

Hi-
Is it possible use Cygwin to run an autotools 'configure' script but have the compiler be MSVC?
Thanks,
Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use cygwin to run autotools for MSVC?
  2020-03-26 20:30 ` Use cygwin to run autotools for MSVC? Mike Gran
@ 2020-03-26 21:37   ` Csaba Raduly
  2020-03-26 23:05     ` Eliot Moss
  2020-03-27 12:48   ` Peter Dons Tychsen
  1 sibling, 1 reply; 4+ messages in thread
From: Csaba Raduly @ 2020-03-26 21:37 UTC (permalink / raw)
  To: Mike Gran; +Cc: Cygwin List

Hi Mike,

On Thu, Mar 26, 2020 at 9:31 PM Mike Gran via Cygwin <cygwin@cygwin.com>
wrote:

> Hi-
> Is it possible use Cygwin to run an autotools 'configure' script but have
> the compiler be MSVC?
>

I would be very surprised if this worked. 'configure' is likely to run the
compiler with unix-style flags (started with hyphens) rather than DOS-style
flags (started with forward slashes). cl.exe may accept only DOS-style
flags.

Also, MSVC won't be able to find Cygwin's include files, and even if it
did, most likely won't be able to compile them.

The whole thing sounds like a recipe for failure. What are you trying to
achieve?


Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant
way
to get the wrong information: this is what you want. - Scott Meyers
(C++TDaWYK)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use cygwin to run autotools for MSVC?
  2020-03-26 21:37   ` Csaba Raduly
@ 2020-03-26 23:05     ` Eliot Moss
  0 siblings, 0 replies; 4+ messages in thread
From: Eliot Moss @ 2020-03-26 23:05 UTC (permalink / raw)
  To: Csaba Raduly, Mike Gran; +Cc: Cygwin List

On 3/26/2020 5:37 PM, Csaba Raduly via Cygwin wrote:
> Hi Mike,
> 
> On Thu, Mar 26, 2020 at 9:31 PM Mike Gran via Cygwin <cygwin@cygwin.com>
> wrote:
> 
>> Hi-
>> Is it possible use Cygwin to run an autotools 'configure' script but have
>> the compiler be MSVC?
>>
> 
> I would be very surprised if this worked. 'configure' is likely to run the
> compiler with unix-style flags (started with hyphens) rather than DOS-style
> flags (started with forward slashes). cl.exe may accept only DOS-style
> flags.
> 
> Also, MSVC won't be able to find Cygwin's include files, and even if it
> did, most likely won't be able to compile them.
> 
> The whole thing sounds like a recipe for failure. What are you trying to
> achieve?

All that said, I _have_ seen build processes organized to give MSVC
as an option ... and that in fact sometimes make it hard to do a Cygwin
build because they "want" to do a native Windows build!

However, this may have been more just a canned Makefile than a whole
./configure process ...

Eliot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use cygwin to run autotools for MSVC?
  2020-03-26 20:30 ` Use cygwin to run autotools for MSVC? Mike Gran
  2020-03-26 21:37   ` Csaba Raduly
@ 2020-03-27 12:48   ` Peter Dons Tychsen
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dons Tychsen @ 2020-03-27 12:48 UTC (permalink / raw)
  To: Mike Gran, Cygwin List

Hi Mike,

> Is it possible use Cygwin to run an autotools 'configure' script but
> have the compiler be MSVC?

Yeah, sure, i have done this in the past.

"./configure CC=cl.exe" should get you going as far as i remember. Make
sure your MS tools are in your PATH.

There are limitations though, as some of library search mechanisms in
autoconf will not work as expected, so do not expect larger projects to
work without having to hack a bit in those nasty M4 macro files
(yikes!).

But for simple projects it does actually work, which is what i used it
for. I have not tried it recently, but i guess it still is supported.

Thanks,

/pedro


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-27 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <537493096.2714240.1585254646086.ref@mail.yahoo.com>
2020-03-26 20:30 ` Use cygwin to run autotools for MSVC? Mike Gran
2020-03-26 21:37   ` Csaba Raduly
2020-03-26 23:05     ` Eliot Moss
2020-03-27 12:48   ` Peter Dons Tychsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).