File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
! Verify that the -isysroot flag is known to the frontend and, on Darwin,
2
2
! is passed on to the linker.
3
3
4
+ ! When DEFAULT_SYSROOT is set -isysroot has no effect.
5
+ ! REQUIRES: !default_sysroot
4
6
! RUN: %flang -### --target=aarch64-apple-darwin -isysroot /path/to/sysroot \
5
7
! RUN: %s 2>&1 | FileCheck %s --check-prefix=CHECK-DARWIN
6
8
! RUN: %flang -### --target=aarch64-linux-gnu -isysroot /path/to/sysroot \
Original file line number Diff line number Diff line change 123
123
if config .osx_sysroot :
124
124
isysroot_flag = ["-isysroot" , config .osx_sysroot ]
125
125
126
+ # Check for DEFAULT_SYSROOT, because when it is set -isysroot has no effect.
127
+ if config .default_sysroot :
128
+ config .available_features .add ("default_sysroot" )
129
+
126
130
# For each occurrence of a flang tool name, replace it with the full path to
127
131
# the build directory holding that tool.
128
132
tools = [
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
24
24
config.cc = "@CMAKE_C_COMPILER@"
25
25
config.osx_sysroot = path(r"@CMAKE_OSX_SYSROOT@")
26
26
config.targets_to_build = "@TARGETS_TO_BUILD@"
27
+ config.default_sysroot = "@DEFAULT_SYSROOT@"
27
28
28
29
import lit.llvm
29
30
lit.llvm.initialize(lit_config, config)
You can’t perform that action at this time.
0 commit comments