Skip to content

Commit

Permalink
Glasalloc with flake (#1)
Browse files Browse the repository at this point in the history
* Glasalloc with flakes

* local scripts
  • Loading branch information
SkamDart authored Sep 3, 2022
1 parent c5b0310 commit 939472c
Show file tree
Hide file tree
Showing 14 changed files with 642 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ dist-newstyle
**/#*#
**/*~
cabal.project.local*


# Added by cargo

/target
/Cargo.lock
lib/
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[package]
name = "glasalloc"
version = "0.1.0"
edition = "2021"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# libglaswegian

Use GHC's Memory Allocator from C/C++. Yes, I'm serious. You can do this:
Use GHC's Memory Allocator from C, C++, and Rust. Yes, I'm serious. You can do this:

```c++
#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
println!("cargo:rustc-link-search=./lib");
println!("cargo:rustc-link-lib=glaswegian");
}
Loading

0 comments on commit 939472c

Please sign in to comment.