llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Hans Wennborg (zmodem) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/177917.diff 2 Files Affected: - (modified) clang/include/clang/Options/Options.td (+1-1) - (modified) clang/test/Driver/cl-options.c (+1) ``````````diff diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td index 43727236ed5a4..a08100ef9d0cd 100644 --- a/clang/include/clang/Options/Options.td +++ b/clang/include/clang/Options/Options.td @@ -4797,7 +4797,7 @@ def ffile_prefix_map_EQ "macros and __builtin_FILE(). Implies -ffile-reproducible.">; def fmacro_prefix_map_EQ : Joined<["-"], "fmacro-prefix-map=">, Group<f_Group>, - Visibility<[ClangOption, CC1Option]>, + Visibility<[ClangOption, CLOption, CC1Option]>, HelpText<"remap file source paths in predefined preprocessor macros and " "__builtin_FILE(). Implies -ffile-reproducible.">; defm force_dwarf_frame : BoolFOption<"force-dwarf-frame", diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 611d0d2927c43..9fd3ff6326dcc 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -718,6 +718,7 @@ // RUN: -resource-dir=asdf \ // RUN: -Wunused-variable \ // RUN: -fmacro-backtrace-limit=0 \ +// RUN: -fmacro-prefix-map=../.. \ // RUN: -fstandalone-debug \ // RUN: -feliminate-unused-debug-types \ // RUN: -fno-eliminate-unused-debug-types \ `````````` </details> https://github.com/llvm/llvm-project/pull/177917 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
