aboutsummaryrefslogtreecommitdiff
path: root/test/standalone.cpp
AgeCommit message (Collapse)Author
2015-11-27rename standalone.cpp to run_tests.cppAndrew Kelley
2015-11-27add pub and export visibility modifiers and optimizationAndrew Kelley
2015-11-27allow empty function and return with no expressionAndrew Kelley
2015-11-27support C-style comments, plus nestingAndrew Kelley
2015-11-26call ld with correct -dynamic-linker argumentAndrew Kelley
It looks like Debian/Ubuntu are doing it correctly. See https://sourceware.org/glibc/wiki/ABIList NixOS has a clang patch which disables adding the -dynamic-linker argument to ld in order to ensure "purity" - that is - that all paths are in /nix/store/*. See https://github.com/NixOS/nixpkgs/blob/6b1651928e943bdb0d69a20764fdaae294e92dc1/pkgs/development/compilers/llvm/3.7/clang/purity.patch So, I changed the environment variable to ZIG_NATIVE_DYNAMIC_LINKER and allow it to be set to blank. And it only matters when building for the native target, since you might want to build for other targets without modifying your environment. closes #1
2015-11-26add testsAndrew Kelley