]> granicus.if.org Git - clang/commit
When building a module, use the macro definitions on the command line
authorDouglas Gregor <dgregor@apple.com>
Mon, 17 Oct 2011 14:55:37 +0000 (14:55 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 17 Oct 2011 14:55:37 +0000 (14:55 +0000)
commit05edf668f0984bfa2994ddc8bb7b78d9fb24cf11
tree518a104278cc89a71032ba303596fe885ab0f0ed
parentc35cba4a54106117a52b267c7040b3bea9a4d18e
When building a module, use the macro definitions on the command line
as part of the hash rather than ignoring them. This means we'll end up
building more module variants (overall), but it allows configuration
macros such as NDEBUG to work so long as they're specified via command
line. More to come in this space.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142187 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PreprocessorOptions.h
lib/Frontend/CompilerInvocation.cpp
test/Modules/Inputs/CmdLine.framework/Headers/CmdLine.h [new file with mode: 0644]
test/Modules/on-demand-build-warnings.m
test/Modules/on-demand-build.m
test/Modules/on-demand-macros.m [new file with mode: 0644]