https://www.google.com/maps/d/edit?mid=1007RxkcYFk1SF2jl-n4B-2CnpciIOMUJ&usp=sharing
- Drive to Zion
// compile with clang++ -g -std=c++17 -fcoroutines-ts coro.cpp | |
#include <experimental/coroutine> | |
#include <iostream> | |
struct generator { | |
struct promise_type { | |
int current_value; | |
auto initial_suspend() { return std::experimental::suspend_always{}; } |
#include <node.h> | |
#include "Test.h" | |
namespace demo { | |
using v8::FunctionCallbackInfo; | |
using v8::Isolate; | |
using v8::Local; | |
using v8::Object; |
use std::collections::HashSet; | |
use std::option::Option; | |
use std::hash::{SipHasher, Hash, Hasher}; | |
struct UniqueIterator<I> { | |
iter: I, | |
seen_items: HashSet<u64>, | |
} | |
fn hash_item<T>(item: &T) -> u64 |
I hereby claim:
To claim this, I am signing this object:
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs | |
index 8ec9c7f..1f60e9d 100644 | |
--- a/src/bootstrap/compile.rs | |
+++ b/src/bootstrap/compile.rs | |
@@ -102,7 +102,7 @@ pub fn std_link(build: &Build, | |
/// | |
/// Only required for musl targets that statically link to libc | |
fn copy_third_party_objects(build: &Build, target: &str, into: &Path) { | |
- for &obj in &["crt1.o", "crti.o", "crtn.o"] { | |
+ for &obj in &["crtbegin.o", "crtend.o", "crt1.o", "crti.o", "crtn.o"] { |
#include <google/protobuf/util/json_util.h> | |
#include <iostream> | |
#include "test.pb.h" | |
int main(int argc, char** argv) { | |
auto t = test::Simple{}; | |
t.set_testint(4); |