<commit_before>##===- tools/swift-ide-test/Makefile -----------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ../..

TOOLNAME = swift-ide-test

# Include this here so we can get the configuration of the targets that have
# been configured for construction. We have to do this early so we can set up
# LINK_COMPONENTS before including Makefile.rules
include $(SWIFT_LEVEL)/../../Makefile.config

# $(TARGETS_TO_BUILD) and ipo are necessary for code generation. bitwriter is
# necessary to write out a .bc file. jit and linker are used for
# JIT execution.
LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter irreader ipo jit linker mcjit asmparser option
USEDLIBS = swiftFrontend.a swiftIDE.a swiftIRGen.a swiftParse.a swiftClangImporter.a swiftSema.a swiftSerialization.a swiftSIL.a swiftSILGen.a swiftAST.a swiftBasic.a
LLVMLibsOptions :=     \
  -lclangDriver        \
  -lclangFrontendTool  \
  -lclangFrontend      \
  -lclangSerialization \
  -lclangParse         \
  -lclangSema          \
  -lclangAnalysis      \
  -lclangEdit	       \
  -lclangRewriteCore   \
  -lclangLex	       \
  -lclangAST	       \
  -lclangBasic         \
  $(LLVMLibsOptions)   \
  -ledit               \
  -framework CoreFoundation

# if $(SWIFT_SDK) is installed, include that in the driver
SWIFT_SDK := /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
ifeq ($(shell test -d $(SWIFT_SDK) && echo OK), OK)
  CXXFLAGS += -DSWIFT_MODULES_SDK="\"$(SWIFT_SDK)\""
endif

include $(SWIFT_LEVEL)/Makefile
<commit_msg>Embed the same SDK path in swift-ide-test as in swift itself.<commit_after>##===- tools/swift-ide-test/Makefile -----------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ../..

TOOLNAME = swift-ide-test

# Include this here so we can get the configuration of the targets that have
# been configured for construction. We have to do this early so we can set up
# LINK_COMPONENTS before including Makefile.rules
include $(SWIFT_LEVEL)/../../Makefile.config

# Embed an SDK path into the driver
CXXFLAGS += -DSWIFT_MODULES_SDK="\"$(SWIFT_SDK)\""

# $(TARGETS_TO_BUILD) and ipo are necessary for code generation. bitwriter is
# necessary to write out a .bc file. jit and linker are used for
# JIT execution.
LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter irreader ipo jit linker mcjit asmparser option
USEDLIBS = swiftFrontend.a swiftIDE.a swiftIRGen.a swiftParse.a swiftClangImporter.a swiftSema.a swiftSerialization.a swiftSIL.a swiftSILGen.a swiftAST.a swiftBasic.a
LLVMLibsOptions :=     \
  -lclangDriver        \
  -lclangFrontendTool  \
  -lclangFrontend      \
  -lclangSerialization \
  -lclangParse         \
  -lclangSema          \
  -lclangAnalysis      \
  -lclangEdit	       \
  -lclangRewriteCore   \
  -lclangLex	       \
  -lclangAST	       \
  -lclangBasic         \
  $(LLVMLibsOptions)   \
  -ledit               \
  -framework CoreFoundation

include $(SWIFT_LEVEL)/Makefile

{'fraction_non_alphanumeric': 0.14424337791765016, 'fraction_numerical': 0.006031995803829006, 'mean_word_length': 2.608325449385052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7532187', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1164, 'n_words': 347}