diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-12 17:17:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 17:17:30 -0800 |
commit | 92e404706b0b1a26cdaf6f8cf81aac148292557f (patch) | |
tree | 96a5d48b7dc6cddb6068d57dbffd88abb2e791f9 /src/snapshot.cc | |
parent | 0c740ff85d855177d1619276154f63a36ed31557 (diff) |
Use include_bytes! instead of incbin. (#1182)
Diffstat (limited to 'src/snapshot.cc')
-rw-r--r-- | src/snapshot.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/snapshot.cc b/src/snapshot.cc deleted file mode 100644 index b0945d319..000000000 --- a/src/snapshot.cc +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018 the Deno authors. All rights reserved. MIT license. - -#include "deno.h" - -extern "C" { - -extern const char snapshot_start asm("snapshot_start"); -extern const char snapshot_end asm("snapshot_end"); -asm(".data\n" - "snapshot_start: .incbin \"gen/snapshot_deno.bin\"\n" - "snapshot_end:\n" - ".globl snapshot_start;\n" - ".globl snapshot_end;"); -extern const deno_buf deno_snapshot = { - nullptr, 0, reinterpret_cast<uint8_t*>(const_cast<char*>(&snapshot_start)), - static_cast<size_t>(&snapshot_end - &snapshot_start)}; - -} |