From 16f2a44435fccbd7466b0659220c765a17e5d0c0 Mon Sep 17 00:00:00 2001 From: Tanzinul Islam Date: Thu, 10 Dec 2020 14:53:07 +0000 Subject: Generate dependency information The Clang-based `bcc32c.exe` doesn't implement the `-Hp` option, so we have to use [`cpp32.exe`][1] instead. Therefore, change the dependency- emitting command to use `$(CPP)` instead of `$(CC)`, which which also uncovered the [existing bug of `2>&1` before `> $dep`][2]. Also C++Builder's `make.exe` doesn't implement `2>&1` in its command runner, so wrap the whole line in a `cmd /C`. [1]: http://docwiki.embarcadero.com/RADStudio/Sydney/en/CPP32.EXE,_the_C_Compiler_Preprocessor [2]: https://ss64.com/nt/syntax-redirection.html Reviewed-by: Richard Levitte Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/13540) --- Configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Configure') diff --git a/Configure b/Configure index e36c5d93aa..76c27bacb8 100755 --- a/Configure +++ b/Configure @@ -1533,10 +1533,10 @@ unless ($disabled{asm}) { # Check for makedepend capabilities. if (!$disabled{makedepend}) { - if ($config{target} =~ /^(VC|vms)-/) { - # For VC- and vms- targets, there's nothing more to do here. The + if ($config{target} =~ /^(VC|BC|vms)-/) { + # For VC-, BC- and vms- targets, there's nothing more to do here. The # functionality is hard coded in the corresponding build files for - # cl (Windows) and CC/DECC (VMS). + # cl/cpp32 (Windows) and CC/DECC (VMS). } elsif (($predefined_C{__GNUC__} // -1) >= 3 && !($predefined_C{__APPLE_CC__} && !$predefined_C{__clang__})) { # We know that GNU C version 3 and up as well as all clang -- cgit v1.2.1