| ... | @@ -536,6 +536,8 @@ fn genToc(allocator: *mem.Allocator, tokenizer: *Tokenizer) !Toc { | ... | @@ -536,6 +536,8 @@ fn genToc(allocator: *mem.Allocator, tokenizer: *Tokenizer) !Toc { |
| 536 | target_str = "x86_64-windows"; | 536 | target_str = "x86_64-windows"; |
| 537 | } else if (mem.eql(u8, end_tag_name, "target_linux_x86_64")) { | 537 | } else if (mem.eql(u8, end_tag_name, "target_linux_x86_64")) { |
| 538 | target_str = "x86_64-linux"; | 538 | target_str = "x86_64-linux"; |
| | 539 | } else if (mem.eql(u8, end_tag_name, "target_linux_riscv64")) { |
| | 540 | target_str = "riscv64-linux"; |
| 539 | } else if (mem.eql(u8, end_tag_name, "target_wasm")) { | 541 | } else if (mem.eql(u8, end_tag_name, "target_wasm")) { |
| 540 | target_str = "wasm32-freestanding"; | 542 | target_str = "wasm32-freestanding"; |
| 541 | } else if (mem.eql(u8, end_tag_name, "target_wasi")) { | 543 | } else if (mem.eql(u8, end_tag_name, "target_wasi")) { |
| ... | @@ -1128,6 +1130,7 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var | ... | @@ -1128,6 +1130,7 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var |
| 1128 | | 1130 | |
| 1129 | if (code.target_str) |triple| { | 1131 | if (code.target_str) |triple| { |
| 1130 | if (mem.startsWith(u8, triple, "wasm32") or | 1132 | if (mem.startsWith(u8, triple, "wasm32") or |
| | 1133 | mem.startsWith(u8, triple, "riscv64-linux") or |
| 1131 | mem.startsWith(u8, triple, "x86_64-linux") and | 1134 | mem.startsWith(u8, triple, "x86_64-linux") and |
| 1132 | (builtin.os != .linux or builtin.arch != .x86_64)) | 1135 | (builtin.os != .linux or builtin.arch != .x86_64)) |
| 1133 | { | 1136 | { |