Skip to content

Commit

Permalink
Make test more lenient for custom clang version strings
Browse files Browse the repository at this point in the history
The version string can be anything, don't restrict it to digits and
dots. It's derived from the resource dir, so just check for that.
  • Loading branch information
d0k committed Jan 8, 2025
1 parent 322ff42 commit fe162be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/test/Driver/darwin-embedded-search-paths.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
// the cc1 arguments.

// CC1: "-cc1"
// CC1: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
// NO-CXX-NOT: "-internal-isystem" "{{.*}}/include/c++/v1"
// CXX-SAME: "-internal-isystem" "{{.*}}/include/c++/v1"
// ULI-SAME: "-internal-isystem" "[[SDKROOT]]/usr/local/include"
// EULI-SAME: "-isystem" "[[SDKROOT]]/embedded/usr/local/include"
// CI-SAME: "-internal-isystem" "{{.*}}/clang/{{[[:digit:].]*}}/include"
// CI-SAME: "-internal-isystem" "[[RESOURCE_DIR]]/include"
// UI-SAME: "-internal-externc-isystem" "[[SDKROOT]]/usr/include"
// EUI-SAME: "-internal-externc-isystem" "[[SDKROOT]]/embedded/usr/include"
// NO-FW-NOT: "-internal-iframework"

0 comments on commit fe162be

Please sign in to comment.