File tree Expand file tree Collapse file tree 6 files changed +8
-61
lines changed Expand file tree Collapse file tree 6 files changed +8
-61
lines changed Original file line number Diff line number Diff line change 1046910469 STRIP_INSTALLED_PRODUCT = NO;
1047010470 STRIP_STYLE = debugging;
1047110471 SWIFT_FORCE_DYNAMIC_LINK_STDLIB = "";
10472- USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/include $(SRCROOT)/source $(LLVM_SOURCE_DIR)/include $(LLVM_SOURCE_DIR)/tools/clang/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/tools/clang/include $(LLVM_SOURCE_DIR)/tools/swift/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/tools/swift/include $(LLVM_SOURCE_DIR)/tools/swift/lib $(LLVM_BUILD_DIR)/$(SWIFT_BUILD_DIR_ARCH)/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/lib/Target/ARM $(CONFIGURATION_BUILD_DIR) $(SRCROOT)/tools/repl/swift/REPLTime ";
10472+ USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/include $(SRCROOT)/source $(LLVM_SOURCE_DIR)/include $(LLVM_SOURCE_DIR)/tools/clang/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/tools/clang/include $(LLVM_SOURCE_DIR)/tools/swift/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/tools/swift/include $(LLVM_SOURCE_DIR)/tools/swift/lib $(LLVM_BUILD_DIR)/$(SWIFT_BUILD_DIR_ARCH)/include $(LLVM_BUILD_DIR)/$(LLVM_BUILD_DIR_ARCH)/lib/Target/ARM $(CONFIGURATION_BUILD_DIR)";
1047310473 WARNING_CFLAGS = (
1047410474 "-Wreorder",
1047510475 "-Wno-newline-eof",
Original file line number Diff line number Diff line change @@ -28,16 +28,6 @@ def repl_executable():
2828def repl_source_file ():
2929 return sys .argv [2 ]
3030
31-
32- def REPLTime_dir ():
33- source_file = repl_source_file ()
34- source_dir = os .path .dirname (source_file )
35- return os .path .join (source_dir , "REPLTime" )
36-
37-
38- def search_args_for_repl ():
39- return ["-I" + REPLTime_dir ()]
40-
4131# Xcode interface
4232
4333
@@ -119,7 +109,7 @@ def swiftc_args_for_repl():
119109 "-DXCODE_BUILD_ME" ] + target_arg_for_repl () + ["-g" ,
120110 "-o" ,
121111 repl_executable (),
122- repl_source_file ()] + module_cache_args_for_repl () + search_args_for_repl () + linker_args_for_repl ()
112+ repl_source_file ()] + module_cache_args_for_repl () + linker_args_for_repl ()
123113
124114
125115def strip_args_for_repl ():
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ endif()
2020
2121set (swift_compile_cmd "${LLDB_SWIFTC} "
2222 -resource -dir "${LLDB_PATH_TO_SWIFT_BUILD} /lib/swift"
23- -module-cache -path "${module_cache_dir} "
24- -I${CMAKE_CURRENT_SOURCE_DIR} /REPLTime)
23+ -module-cache -path "${module_cache_dir} " )
2524
2625if (CMAKE_CROSSCOMPILING )
2726 set (swift_compile_cmd ${swift_compile_cmd} -target "${LLVM_HOST_TRIPLE} " -sdk "${CMAKE_SYSROOT} " )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414// lands in an external Xcode build.
1515#if XCODE_BUILD_ME || !_runtime(_ObjC)
1616#if _runtime(_ObjC)
17- import REPLTime
17+ import Darwin
1818#endif
1919
2020func repl_main( ) -> Int
@@ -38,13 +38,13 @@ func repl_main() -> Int
3838// we want this program to exit without consuming 100% CPU, so we detect any loops
3939// that take less than 100us and if we get three of them in a row, we exit.
4040
41- var timebase_info = REPLTime . mach_timebase_info ( numer: 0 , denom: 0 )
42- REPLTime . REPL_mach_timebase_info ( & timebase_info)
41+ var timebase_info = mach_timebase_info ( numer: 0 , denom: 0 )
42+ Darwin . mach_timebase_info ( & timebase_info)
4343var subsequent_short = 0
4444while subsequent_short < 3 {
45- var start = REPLTime . REPL_mach_absolute_time ( )
45+ var start = Darwin . mach_absolute_time ( )
4646 repl_main ( )
47- var end = REPLTime . REPL_mach_absolute_time ( )
47+ var end = Darwin . mach_absolute_time ( )
4848 var elapsedTicks = end - start
4949 var elapsedNano = ( elapsedTicks * UInt64( timebase_info. numer) ) / UInt64( timebase_info. denom)
5050 if elapsedNano < 100000 {
You can’t perform that action at this time.
0 commit comments