Skip to content

Instantly share code, notes, and snippets.

@WebDrake
WebDrake / gcc.wrapper
Created September 1, 2016 21:45
Provisional gcc wrapper for LDC snap package
#!/bin/sh
exec "$SNAP/usr/bin/gcc" --sysroot=$SNAP "$@"
@WebDrake
WebDrake / ldc2.conf
Created September 1, 2016 21:44
First draft of working ldc2.conf
// This configuration file uses libconfig.
// See http://www.hyperrealm.com/libconfig/ for syntax details.
// The default group is required
default:
{
// 'switches' holds array of string that are appends to the command line
// arguments before they are parsed.
switches = [
"-I%%ldcbinarypath%%/../include/d/ldc",
@WebDrake
WebDrake / snapcr
Created September 1, 2016 21:41
First draft of working snapcraft.yaml
name: ldc2
version: "1.0.0"
summary: D compiler with LLVM backend
description: LDC is a compiler for the D programming Language.
It is based on the latest DMD frontend and uses LLVM as backend.
confinement: strict
apps:
ldc2:
command: ldc2
@WebDrake
WebDrake / snapcraft.yaml
Created August 31, 2016 18:53
provisional snapcraft.yaml for LDC
name: ldc2
version: "1.0.0"
summary: D compiler with LLVM backend
description: LDC is a compiler for the D programming Language.
It is based on the latest DMD frontend and uses LLVM as backend.
confinement: strict
apps:
ldc2:
command: ldc2
@WebDrake
WebDrake / ldc2.conf
Created August 31, 2016 18:52
provisional ldc2.conf for snap-packaged LDC
// This configuration file uses libconfig.
// See http://www.hyperrealm.com/libconfig/ for syntax details.
// The default group is required
default:
{
// 'switches' holds array of string that are appends to the command line
// arguments before they are parsed.
switches = [
"-I%%ldcbinarypath%%/../include/d/ldc",
@WebDrake
WebDrake / ly2video29.ly
Created February 1, 2013 12:52
Minimal example for ly2video issue #29
\version "2.16.0"
\include "ly2video29included.ly"
{
\foo
}