Skip to content

Commit

Permalink
Fix packs.product subset build with gcc (#68998)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored May 9, 2022
1 parent f8fa9f6 commit 1e41844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ while [[ $# > 0 ]]; do
;;

-clang*)
arguments="$arguments /p:Compiler=$opt"
compiler="${opt/#-/}" # -clang-9 => clang-9 or clang-9 => (unchanged)
arguments="$arguments /p:Compiler=$compiler /p:CppCompilerAndLinker=$compiler"
shift 1
;;

Expand All @@ -396,7 +397,8 @@ while [[ $# > 0 ]]; do
;;

-gcc*)
arguments="$arguments /p:Compiler=$opt"
compiler="${opt/#-/}" # -gcc-9 => gcc-9 or gcc-9 => (unchanged)
arguments="$arguments /p:Compiler=$compiler /p:CppCompilerAndLinker=$compiler"
shift 1
;;

Expand Down

0 comments on commit 1e41844

Please sign in to comment.