Skip to content

Instantly share code, notes, and snippets.

View martell's full-sized avatar
🏠
Working from home

martell martell

🏠
Working from home
View GitHub Profile
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <windows.h>
#include <stdlib.h>
#include <setjmp.h>
/usr/local/Cellar/cmake/3.5.2/bin/cmake -E remove -f CMakeFiles/cxx.dir/objects.a
/Users/martell/llvm/usr/bin/llvm-ar cr CMakeFiles/cxx.dir/objects.a @CMakeFiles/cxx.dir/objects1.rsp
/Users/martell/llvm/usr/bin/x86_64-w64-mingw32-clang++ --sysroot=/Users/martell/llvm/usr -fPIC -fPIC -shared -o libc++.so -Wl,--out-implib,libc++.dll.a -Wl,--major-image-version,1,--minor-image-version,0 -Wl,--whole-archive CMakeFiles/cxx.dir/objects.a -Wl,--no-whole-archive @CMakeFiles/cxx.dir/linklibs.rsp
# This is the CMakeCache file.
# For build in directory: /Users/martell/llvm/build-libcxx-git
# It was generated by CMake: /usr/local/Cellar/cmake/3.5.2/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@martell
martell / clang output
Last active June 11, 2016 07:34
libc++ and libc++abi
../usr/bin/x86_64-w64-mingw32-clang++ -stdlib=libc++ -c test.cpp -v
clang version 3.9.0 (trunk 272330) (llvm/trunk 272334)
Target: x86_64--windows-gnu
Thread model: posix
InstalledDir: /Users/martell/llvm/usr/bin
"/Users/martell/llvm/usr/bin/clang-3.9" -cc1 -triple x86_64--windows-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 264.3.102 -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -coverage-file /Users/martell/llvm/scripts/test.cpp -resource-dir /Users/martell/llvm/usr/bin/../lib/clang/3.9.0 -internal-isystem /Users/martell/llvm/usr/include/c++/v1 -internal-isystem /Users/martell/llvm/usr/bin/../lib/clang/3.9.0/include -internal-isystem /Users/martell/llvm/usr/x86_64-w64-mingw32/include -internal-isystem /Users/martell/llvm/usr/include -fdeprecated-macro -fdebug-
@martell
martell / gist:0995afb74d856b5f77285c0cfa2c4ef0
Created June 2, 2016 02:10 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
scene.registerConfig('YEEZUS', {
type: 'default',
opts: {
hitOpts: { radius: PLAYER_SIZE.w / 2 },
viewOpts: {
url: 'resources/images/Kanye.png',
width: PLAYER_SIZE.w,
height: PLAYER_SIZE.h,
offsetX: PLAYER_SIZE.w / -2,
offsetY: PLAYER_SIZE.h / -2
* thread #1: tid = 0x15ad0, 0x00007fff928981d6 libsystem_c.dylib`__vfprintf + 319, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00007fff928981d6 libsystem_c.dylib`__vfprintf + 319
frame #1: 0x00007fff928c235d libsystem_c.dylib`__v2printf + 669
frame #2: 0x00007fff928a65a9 libsystem_c.dylib`_vsnprintf + 596
frame #3: 0x00007fff928a665e libsystem_c.dylib`vsnprintf + 80
frame #4: 0x00007fff928d7cc0 libsystem_c.dylib`__snprintf_chk + 128
frame #5: 0x0000000100003899 gith`argv_usage(file=0x00007fff77786348, header="Usage: gith [options] <file>...\nOptions:\n", options=0x00000001000050a0, mode=0x0000000000000000) + 1513 at argv.h:699
frame #6: 0x0000000100001893 gith`gith_driver_usage(program="gith", arg=0x0000000000000000, meta=0x00000001002000b0) + 147 at gith_driver_ctx.c:64
frame #7: 0x0000000100001318 gith`gith_get_driver_ctx(argv=0x00007fff5fbffb30, envp=0x00007fff5fbffb40, flags=5, pctx=0x00007fff5fbffab8) + 184 at gith_driver
git clone https://server.com/hello.git
git fetch
git fetch origin/master
git pull
git pull --rebase
git am 0001-hello.patch
git format-patch -p1
git checkout 123456
"/Users/martell/llvm/usr/bin/lld" -flavor gnu -target x86_64--windows-gnu -m i386pep -Bdynamic -o a.exe /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crt2.o /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtbegin.o -L/Users/martell/llvm/usr/x86_64-w64-mingw32/lib -L/Users/martell/llvm/usr/lib -L/Users/martell/llvm/usr/x86_64-w64-mingw32/sys-root/mingw/lib /Users/martell/llvm/compiler-rt/clang_mingw/builtins-x86_64/x86_64/SubDir.lib__builtins__x86_64/chkstk.o /var/folders/dm/xx2ssgf541x2f6tg8chl3wdh0000gn/T/test-985cbe.o -lmingw32 /Users/martell/llvm/usr/bin/../lib/clang/3.7.1/lib/windows/libclang_rt.builtins-x86_64.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtend.o
Undefined symbol: /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/libmingw32.a(lib64_libmingw32_a-gccmain.o): __CTOR_LIST__
Undefined symbol: /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/libmingw32.a(lib64_libmingw32_a-gccmain.o): __DTOR_LIST__
symbol(s) not found
clan
"/Users/martell/llvm/usr/bin/lld" -flavor gnu -target x86_64--windows-gnu -m i386pep -Bdynamic -o a.exe /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crt2.o /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtbegin.o -L/Users/martell/llvm/usr/x86_64-w64-mingw32/lib -L/Users/martell/llvm/usr/lib -L/Users/martell/llvm/usr/x86_64-w64-mingw32/sys-root/mingw/lib /Users/martell/llvm/compiler-rt/clang_mingw/builtins-x86_64/x86_64/SubDir.lib__builtins__x86_64/chkstk.o /var/folders/dm/xx2ssgf541x2f6tg8chl3wdh0000gn/T/test-0f7aae.o -lmingw32 /Users/martell/llvm/usr/bin/../lib/clang/3.7.1/lib/windows/libclang_rt.builtins-x86_64.a -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 /Users/martell/llvm/usr/x86_64-w64-mingw32/lib/crtend.o