meta: add metadata to win32 exe/dll files
This commit is contained in:
@@ -8,8 +8,12 @@ file(GLOB ivy_sources
|
||||
file(GLOB_RECURSE sys_sources
|
||||
sys/${system_name}/*.c
|
||||
sys/${system_name}/*.h)
|
||||
|
||||
if (WIN32)
|
||||
set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/frontend.rc)
|
||||
endif ()
|
||||
|
||||
add_executable(ivy ${ivy_sources} ${sys_sources})
|
||||
add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file})
|
||||
target_link_libraries(
|
||||
ivy
|
||||
ivy-rt
|
||||
|
||||
@@ -29,6 +29,18 @@ static void skip_line(struct ivy_lexer *lex)
|
||||
|
||||
int repl(const b_command *cmd, const b_arglist *args, const b_array *_)
|
||||
{
|
||||
b_printf("[bold,bright_red]error[[E0384][reset,bold,white]: cannot assign twice to immutable variable `i`[reset]\n");
|
||||
b_printf("[bold,bright_blue] -->[reset] src/main.rs:7:3\n");
|
||||
b_printf("[bold,bright_blue] |[reset]\n");
|
||||
b_printf("[bold,bright_blue]4 |[reset] let i = 0;\n");
|
||||
b_printf("[bold,bright_blue] | -[reset]\n");
|
||||
b_printf("[bold,bright_blue] | |[reset]\n");
|
||||
b_printf("[bold,bright_blue] | first assignment to `i`[reset]\n");
|
||||
b_printf("[bold,bright_blue] | help: make this binding mutable: `mut i`[reset]\n");
|
||||
b_printf("[bold,bright_blue]...[reset]\n");
|
||||
b_printf("[bold,bright_blue]7 |[reset] i += 1;\n");
|
||||
b_printf("[bold,bright_blue] |[bold,bright_red] ^^^^^^ cannot assign twice to immutable variable[reset]\n");
|
||||
|
||||
bool show_lex
|
||||
= b_arglist_get_count(args, OPT_SHOW_LEX_TOKENS, B_COMMAND_INVALID_ID) > 0;
|
||||
bool show_ast
|
||||
|
||||
Reference in New Issue
Block a user