automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pr-msvc-support merge


From: Peter Rosin
Subject: Re: pr-msvc-support merge
Date: Tue, 22 Jun 2010 13:53:49 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5

Den 2010-06-22 05:38 skrev Charles Wilson:
What if $CC is specified as 'cl.exe'? IIUC, this means that the compile
script will be invoked as "compile cl.exe ...." but then this case:

+  cl | *[/\\]cl)
+    func_cl_wrapper "$@"      # Doesn't return...
+    ;;

won't fire.

(also folding in the "cl\ * | */cl\ *" cases suggested by Ralf in
another threadlet)

Since the following is way over the top IMHO:

  [cC][lL] | *[/\\][cC][lL] | [cC][lL]\ * | *[/\\][cC][lL]\ * \
  | [cC][lL].[eE][xX][eE]    | *[/\\][cC][lL].[eE][xX][eE]    \
  | [cC][lL].[eE][xX][eE]\ * | *[/\\][cC][lL].[eE][xX][eE]\ * )
    func_cl_wrapper "$@"      # Doesn't return...
    ;;

I'm going with this instead:

  cl | *[/\\]cl | cl\ * | *[/\\]cl\ * \
  | cl.exe | *[/\\]cl.exe | cl.exe\ * | *[/\\]cl.exe\ * )
    func_cl_wrapper "$@"      # Doesn't return...
    ;;

Is it possible to test the path translation logic? E.g. a test that is
skipped unless $build+$host is one of the supported combinations?

I added compile5.test. I don't think $build is part of the equation
for the purpose of this test, and the only supported $host at this
point is mingw. Is it what you had in mind?

I'm should add that the test suite works as expected with
CC="/path/to/compile cl -MD" and CFLAGS empty (i.e. check8
and depcomp3 now passes, everything else the same as before.)

Cheers,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]