Skip to content

Instantly share code, notes, and snippets.

View jwakely's full-sized avatar
👁️
Massive eye is watching you, but don't worry about it.

Jonathan Wakely jwakely

👁️
Massive eye is watching you, but don't worry about it.
View GitHub Profile
@jwakely
jwakely / update-gcc.sh
Last active September 26, 2021 10:51 — forked from siddhesh/update-glibc.sh
#!/bin/bash
# Update Patchwork patch list from commits in the upstream repo.
# Intended for use with glibc and gcc.
#
# [pw]
# server = https://patchwork.sourceware.org/api/1.2/
# project = gcc
# token = <API token>
# states = committed,accepted,superseded,deferred,rejected
#
@jwakely
jwakely / README.md
Last active June 15, 2021 13:33 — forked from ldionne/README.md
From-scratch Lit configuration for Wakely

The simplest approach is to just replace libcxx/test/lit.cfg.py with the lit.cfg.py file below, then you can just run the tests in-place via a command like:

$LLVM_SOURCE_ROOT/llvm/utils/lit/lit.py -s -i -j4 std/utilities/ratio

Alternatively, put the libstdcxx.cfg.in file in libcxx/test/configs/libstdcxx.cfg.in. Then, configure the LLVM tree with -DLIBCXX_TEST_CONFIG=<path-to-libstdcxx.cfg.in>.

Then, you should be able to use ./build/bin/llvm-lit -sv <whatever>.

@jwakely
jwakely / grr.c
Created August 24, 2015 15:21 — forked from KyleJHarper/grr.c
Debugging a race condition with null setting.
/*
* grr.c
*
* Created on: Aug 23, 2015
* Author: Kyle Harper
*/
#include <pthread.h>
#include <stdlib.h>
@jwakely
jwakely / make_array.cc
Last active December 24, 2015 23:09 — forked from lichray/make_array.cc
#include <array>
template <typename... T>
using common_type_t = typename std::common_type<T...>::type;
template <typename T1, typename... T2>
constexpr auto make_array(T1&& t1, T2&&... t2)
-> std::array<common_type_t<T1, T2...>, sizeof...(T2) + 1>
{
return { std::forward<T1>(t1), std::forward<T2>(t2)... };
#ifndef SSVU_FASTFUNC
#define SSVU_FASTFUNC
#include <cstring>
#include <type_traits>
#include <cassert>
#include <cstddef>
#include <memory>
#include <new>
#include <utility>