<commit_before>OS = $(shell uname -s)
LLVM_VERSION = $(shell llvm-config --version | cut -d . -f 1,2)

CFLAGS = -O3 -std=c++11 -stdlib=libstdc++ -Wall -fno-use-cxa-atexit -fPIC -flto
ifeq (${OS}, Darwin)
  # OS X
  CLANG ?= clang++-${LLVM_VERSION}
else ifeq (${OS}, Linux)
  # Linux
  CLANG ?= clang++-${LLVM_VERSION}
else
  $(error Unsupported platform: ${OS})
endif


all: libweldrt.bc

vb.o: vb.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

merger.o: merger.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

runtime.o: runtime.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

libweldrt.bc: vb.o merger.o runtime.o
	llvm-link-${LLVM_VERSION} $^ -o $@

clean:
	rm -f *.bc *.o

.phony: all

<commit_msg>Removing stdlib=libstdc++ from Makefile (#194)<commit_after>OS = $(shell uname -s)
LLVM_VERSION = $(shell llvm-config --version | cut -d . -f 1,2)

CFLAGS = -O3 -std=c++11 -Wall -fno-use-cxa-atexit -fPIC -flto
ifeq (${OS}, Darwin)
  # OS X
  CLANG ?= clang++-${LLVM_VERSION}
else ifeq (${OS}, Linux)
  # Linux
  CLANG ?= clang++-${LLVM_VERSION}
else
  $(error Unsupported platform: ${OS})
endif


all: libweldrt.bc

vb.o: vb.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

merger.o: merger.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

runtime.o: runtime.cpp
	${CLANG} ${CFLAGS} -c $< -o $@

libweldrt.bc: vb.o merger.o runtime.o
	llvm-link-${LLVM_VERSION} $^ -o $@

clean:
	rm -f *.bc *.o

.phony: all


{'fraction_non_alphanumeric': 0.21433850702143384, 'fraction_numerical': 0.009608277900960829, 'mean_word_length': 3.2445141065830723, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '770186', 'n_tokens_mistral': 642, 'n_tokens_neox': 607, 'n_words': 149}