format note comments
This commit is contained in:
parent
7fb1e8be87
commit
dda0dc72a7
@ -116,7 +116,7 @@ module Hardware
|
|||||||
sysctl_bool("hw.optional.sse4_2")
|
sysctl_bool("hw.optional.sse4_2")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Note: this is more reliable than checking uname.
|
# NOTE: this is more reliable than checking uname.
|
||||||
# `sysctl` returns the right answer even when running in Rosetta 2.
|
# `sysctl` returns the right answer even when running in Rosetta 2.
|
||||||
def physical_cpu_arm64?
|
def physical_cpu_arm64?
|
||||||
sysctl_bool("hw.optional.arm64")
|
sysctl_bool("hw.optional.arm64")
|
||||||
|
@ -77,7 +77,7 @@ class Keg
|
|||||||
# remove all RPATHs from the file.
|
# remove all RPATHs from the file.
|
||||||
if ENV["HOMEBREW_RELOCATE_METAVARS"] &&
|
if ENV["HOMEBREW_RELOCATE_METAVARS"] &&
|
||||||
file.dynamically_linked_libraries.none? { |lib| lib.start_with?("@rpath") }
|
file.dynamically_linked_libraries.none? { |lib| lib.start_with?("@rpath") }
|
||||||
# Note: This could probably be made more efficient by reverse-sorting
|
# NOTE: This could probably be made more efficient by reverse-sorting
|
||||||
# the RPATHs by offset and calling MachOFile#delete_command
|
# the RPATHs by offset and calling MachOFile#delete_command
|
||||||
# with repopulate: false.
|
# with repopulate: false.
|
||||||
file.rpaths.each { |r| file.delete_rpath(r) }
|
file.rpaths.each { |r| file.delete_rpath(r) }
|
||||||
|
@ -73,7 +73,7 @@ describe Utils::Shell do
|
|||||||
specify "::csh_quote" do
|
specify "::csh_quote" do
|
||||||
expect(subject.send(:csh_quote, "")).to eq("''")
|
expect(subject.send(:csh_quote, "")).to eq("''")
|
||||||
expect(subject.send(:csh_quote, "\\")).to eq("\\\\")
|
expect(subject.send(:csh_quote, "\\")).to eq("\\\\")
|
||||||
# note this test is different than for sh
|
# NOTE: this test is different than for sh
|
||||||
expect(subject.send(:csh_quote, "\n")).to eq("'\\\n'")
|
expect(subject.send(:csh_quote, "\n")).to eq("'\\\n'")
|
||||||
expect(subject.send(:csh_quote, "$")).to eq("\\$")
|
expect(subject.send(:csh_quote, "$")).to eq("\\$")
|
||||||
expect(subject.send(:csh_quote, "word")).to eq("word")
|
expect(subject.send(:csh_quote, "word")).to eq("word")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user