MaskRay added inline comments.
================ Comment at: clang/test/Driver/hurd.cpp:4 +// RUN: %clang -no-canonical-prefixes %s -### 2>&1 \ +// RUN: --target=i386-pc-gnu \ +// RUN: --sysroot=%S/Inputs/basic_hurd_tree \ ---------------- The target should exactly match the hurd triple. Other aliases are supported but should be considered discouraged. Driver testing is difficult. Good to test `-DCLANG_DEFAULT_RTLIB=compiler-rt -DCLANG_DEFAULT_CXX_STDLIB=libc++` as well whether you need to fix some options. If `hurd.c` has now duplicated testing for some properties, consider dropping it. We should try making tests orthogonal. ================ Comment at: clang/test/Driver/hurd.cpp:20 +// CHECK: "-dynamic-linker" "/lib/ld.so" +// CHECK: "{{.*}}/usr/lib/gcc/i686-gnu/4.6.0{{/|\\\\}}crtbegin.o" +// CHECK-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/i686-gnu/4.6.0" ---------------- You probably missed that I used `"-L` as the first line value (also note that the thing after `CHECK:` is aligned). The ensures the test can catch the case when a "-L" is added to the start of the list. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D101331/new/ https://reviews.llvm.org/D101331 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits