From: Ben Langmuir Date: Fri, 1 Aug 2014 22:12:21 +0000 (+0000) Subject: Add -fbuild-session-file as an alternative to -fbuild-session-timestamp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f697025d39bbe85e658ab8d06523cf89bc95b9f;p=clang Add -fbuild-session-file as an alternative to -fbuild-session-timestamp Build systems tend to traffic in files and modification times, so having them touch a file at the beginning of the build can be easier than having them update the compile command they use every time they build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214577 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticDriverKinds.td b/include/clang/Basic/DiagnosticDriverKinds.td index e2afd6c7b5..720254830b 100644 --- a/include/clang/Basic/DiagnosticDriverKinds.td +++ b/include/clang/Basic/DiagnosticDriverKinds.td @@ -175,7 +175,7 @@ def err_analyzer_config_multiple_values : Error< def err_drv_modules_validate_once_requires_timestamp : Error< "option '-fmodules-validate-once-per-build-session' requires " - "'-fbuild-session-timestamp='">; + "'-fbuild-session-timestamp=' or '-fbuild-session-file='">; def warn_drv_invoking_fallback : Warning<"falling back to %0">, InGroup; diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index f799720e4b..a32d932cb7 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -617,6 +617,9 @@ def fmodules_search_all : Flag <["-"], "fmodules-search-all">, Group, def fbuild_session_timestamp : Joined<["-"], "fbuild-session-timestamp=">, Group, Flags<[CC1Option]>, MetaVarName<"