Skip to content

Commit 8d55919

Browse files
committed
Fix unix and pre-commit
1 parent 3cc46c7 commit 8d55919

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

py/compile.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ typedef enum {
9292
#define NATIVE_EMITTER(f) emit_native_table[mp_dynamic_compiler.native_arch]->emit_##f
9393
#define NATIVE_EMITTER_TABLE emit_native_table[mp_dynamic_compiler.native_arch]
9494

95-
STATIC const emit_method_table_t * emit_native_table[] = {
95+
STATIC const emit_method_table_t *emit_native_table[] = {
9696
NULL,
9797
&emit_native_x86_method_table,
9898
&emit_native_x64_method_table,
@@ -131,7 +131,7 @@ STATIC const emit_method_table_t * emit_native_table[] = {
131131
#define ASM_EMITTER(f) emit_asm_table[mp_dynamic_compiler.native_arch]->asm_##f
132132
#define ASM_EMITTER_TABLE emit_asm_table[mp_dynamic_compiler.native_arch]
133133

134-
STATIC const emit_inline_asm_method_table_t * emit_asm_table[] = {
134+
STATIC const emit_inline_asm_method_table_t *emit_asm_table[] = {
135135
NULL,
136136
NULL,
137137
NULL,
@@ -3527,7 +3527,7 @@ mp_raw_code_t *mp_compile_to_raw_code(mp_parse_tree_t *parse_tree, qstr source_f
35273527

35283528
switch (s->emit_options) {
35293529

3530-
#if MICROPY_EMIT_NATIVE
3530+
#if MICROPY_EMIT_NATIVE
35313531
case MP_EMIT_OPT_NATIVE_PYTHON:
35323532
case MP_EMIT_OPT_VIPER:
35333533
if (emit_native == NULL) {
@@ -3536,7 +3536,7 @@ mp_raw_code_t *mp_compile_to_raw_code(mp_parse_tree_t *parse_tree, qstr source_f
35363536
comp->emit_method_table = NATIVE_EMITTER_TABLE;
35373537
comp->emit = emit_native;
35383538
break;
3539-
#endif // MICROPY_EMIT_NATIVE
3539+
#endif // MICROPY_EMIT_NATIVE
35403540

35413541
default:
35423542
comp->emit = emit_bc;

py/mkrules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $(BUILD)/%.o: %.c | $(HEADER_BUILD)/qstrdefs.generated.h $(HEADER_BUILD)/qstrdef
6262
$(call compile_c)
6363

6464
vpath %.cpp . $(TOP) $(USER_C_MODULES)
65-
$(BUILD)/%.o: %.cpp
65+
$(BUILD)/%.o: %.cpp | $(HEADER_BUILD)/qstrdefs.generated.h $(HEADER_BUILD)/qstrdefs.enum.h
6666
$(call compile_cxx)
6767

6868
QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR -x c

0 commit comments

Comments
 (0)