[all-commits] [llvm/llvm-project] a9fdfe: Fix LLVM tool --version build mode printing for MSVC
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Mon Dec 23 10:07:41 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a9fdfe63ce023b5aff0fb160375dd28eabf525df
https://github.com/llvm/llvm-project/commit/a9fdfe63ce023b5aff0fb160375dd28eabf525df
Author: Reid Kleckner <rnk at google.com>
Date: 2019-12-23 (Mon, 23 Dec 2019)
Changed paths:
M llvm/lib/Support/CommandLine.cpp
Log Message:
-----------
Fix LLVM tool --version build mode printing for MSVC
LLVM tools such as llc print "DEBUG build" or "Optimized build" when
passed --version. Before this change, this was implemented by checking
for the __OPTIMIZE__ GCC macro. MSVC does not define this macro. For
MSVC, control this behavior with _DEBUG instead. It doesn't have
precisely the same meaning, but in most configurations, it will do the
right thing.
Fixes PR17752
Reviewed by: MaskRay
Differential Revision: https://reviews.llvm.org/D71817
More information about the All-commits
mailing list