-
Notifications
You must be signed in to change notification settings - Fork 0
/
brew_reinstall_--cc_oprion.txt
43 lines (31 loc) · 1.85 KB
/
brew_reinstall_--cc_oprion.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
HomeBrewではインストールする時しか --cc オプションが使えません
通常はそれで良いのですが、まれに依存関係が壊れる事があります
下位依存されてるフォーミュラを修正しなければならない場合は reinstall を使うのですが
--cc オプションが必要なフォーミュラには対応出来ません、なので書き換え(追加)します
アップデートで書き換えられエラーになったら、https://github.com/Homebrew/brew ここからダウンロードして
それぞれの階層に、最新の reinstall.rb 本体をコピーして再度書き換えて下さい
/usr/local/Homebrew/Library/Homebrew/reinstall.rb
リストに追加、24行目辺り
verbose: false,
cc: false, # <= 追加
git: false
リストに追加、50行目辺り
build_from_source_formulae:,
cc:, # <= 追加
git:,
/usr/local/Homebrew/Library/Homebrew/cmd/reinstall.rb
リストに追加、67行目辺り
[:switch, "-g", "--git", {
description: "Create a Git repository, useful for creating patches to the software.",
}],
[:flag, "--cc=", { description: "Attempt to compile using the specified <compiler>, which should be the name of the " \
"compiler's executable, e.g. `gcc-7` for GCC 7. In order to use LLVM's clang, specify " \
"`llvm_clang`. To use the Apple-provided clang, specify `clang`. This option will only " \
"accept compilers that are provided by Homebrew or bundled with macOS. Please do not " \
"file issues if you encounter errors while using this option." }], # <= 追加
].each do |args|
リストに追加、154行目辺り
verbose: args.verbose?,
cc: args.cc, # <= 追加
git: args.git?,
これで reinstall --cc option が使える様になります