Skip to content

Commit 1f3ad87

Browse files
committed
Fix some typos for OS X
1 parent ea1bdf7 commit 1f3ad87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ class JuliaPCHGenerator : public clang::PCHGenerator
13481348
return getPCH().size();
13491349
}
13501350

1351-
char *getPCHData(char *data) {
1351+
void getPCHData(char *data) {
13521352
memcpy(data, getPCH().data(), getPCH().size());
13531353
}
13541354
};

src/initialization.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@ defineMacro(Name) = defineMacro(__default_compiler__,Name)
196196
nostdcxx = haskey(ENV,"CXXJL_NOSTDCXX")
197197

198198
# On OS X, we just use the libc++ headers that ship with XCode
199-
@static if is_apple() function addStdHeaders(C)
199+
@static if is_apple() function collectStdHeaders!(headers)
200200
xcode_path =
201201
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/"
202202
didfind = false
203203
for path in ("usr/lib/c++/v1/","usr/include/c++/v1")
204204
if isdir(joinpath(xcode_path,path))
205-
addHeaderDir(C,joinpath(xcode_path,path), kind = C_ExternCSystem)
205+
push!(headers, (joinpath(xcode_path,path), C_ExternCSystem))
206206
didfind = true
207207
end
208208
end

0 commit comments

Comments
 (0)