File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ def rules_and_build_statements(self) -> (list, list):
280
280
filedict = classify ({key : self .project_variables [key ] for key in FILE_RULES })
281
281
linker_conds = set ()
282
282
283
+ # switch to cxx for pp files (auto-links ++ stdlib)
284
+ if any ("cxx" in ftype for ftype in filedict ):
285
+ self .project_variables ["ld" ] = self .project_variables ["cxx" ]
286
+
283
287
# Deal with logos preprocessing
284
288
if 'logos_files' in filedict :
285
289
for f in standardize_file_list (subdir , filedict ['logos_files' ]):
@@ -295,6 +299,8 @@ def rules_and_build_statements(self) -> (list, list):
295
299
build_state .append (Build (f'$builddir/logos/{ name } .mm' , 'logos' , f ))
296
300
filedict .setdefault ('objcxx_files' , [])
297
301
filedict ['objcxx_files' ].append (f'$builddir/logos/{ name } .mm' )
302
+ # switch to cxx for pp files (auto-links ++ stdlib)
303
+ self .project_variables ["ld" ] = self .project_variables ["cxx" ]
298
304
299
305
# Deal with compilation
300
306
archs = self .project_variables ['archs' ]
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ def locate_macos_toolchain(cls, use_objcs: bool):
31
31
return None
32
32
33
33
tc = cls ()
34
- tc .ass = tc_dir + 'clang'
35
34
tc .clang = tc_dir + 'clang'
36
35
tc .clangpp = tc_dir + 'clang++'
37
- tc .ld = tc_dir + 'clang++'
36
+ tc .ass = tc .clang
37
+ tc .ld = tc .clang
38
38
tc .codesign = 'ldid'
39
39
tc .dsym = tc_dir + 'dsymutil'
40
40
# FIXME: hardcoded while I wait on a real distribution of llvm-objcs
@@ -59,10 +59,10 @@ def locate_linux_toolchain(cls, use_objcs: bool):
59
59
return None
60
60
61
61
tc = cls ()
62
- tc .ass = tc_dir + 'clang'
63
62
tc .clang = tc_dir + 'clang'
64
63
tc .clangpp = tc_dir + 'clang++'
65
- tc .ld = tc_dir + 'clang++'
64
+ tc .ass = tc .clang
65
+ tc .ld = tc .clang
66
66
tc .codesign = tc_dir + 'ldid'
67
67
tc .dsym = tc_dir + 'dsymutil'
68
68
tc .lipo = tc_dir + 'lipo'
You can’t perform that action at this time.
0 commit comments