| ... | @@ -861,6 +861,10 @@ fn addCxxKnownPath( | ... | @@ -861,6 +861,10 @@ fn addCxxKnownPath( |
| 861 | } | 861 | } |
| 862 | return error.RequiredLibraryNotFound; | 862 | return error.RequiredLibraryNotFound; |
| 863 | } | 863 | } |
| | 864 | // By default, explicit library paths are not checked for being linker scripts, |
| | 865 | // but libc++ may very well be one, so force all inputs to be checked when passing |
| | 866 | // an explicit path to libc++. |
| | 867 | exe.allow_so_scripts = true; |
| 864 | exe.addObjectFile(.{ .cwd_relative = path_unpadded }); | 868 | exe.addObjectFile(.{ .cwd_relative = path_unpadded }); |
| 865 | | 869 | |
| 866 | // TODO a way to integrate with system c++ include files here | 870 | // TODO a way to integrate with system c++ include files here |