]> granicus.if.org Git - clang/commit
clang-cl: Add support for the /o option for object files, executables, and preprocess...
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Thu, 11 Sep 2014 18:16:21 +0000 (18:16 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Thu, 11 Sep 2014 18:16:21 +0000 (18:16 +0000)
commit6da9fc6bf644a93fc931d33dd7080473c1849469
tree05c0a15820b7b6c6539a840ba2210a52490b8b31
parent25f52a318b4584c59617b1385553a9030c4e159c
clang-cl: Add support for the /o option for object files, executables, and preprocessor output

Summary:
cl.exe recognizes /o as a deprecated and undocumented option similar to
/Fe.  This patch adds support for this option to clang-cl for /Fe, /Fo
and /Fi.  It also ensures that the last option among /o and /F* wins,
if both specified.

This is required at least for building autoconf based software, since
autoconf uses -o to specify the executable output.

This fixes http://llvm.org/PR20894.

Test Plan: The patch includes automated tests.

Reviewers: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D5308

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217615 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CLCompatOptions.td
lib/Driver/Driver.cpp
test/Driver/cl-outputs.c