File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
graalpython/com.oracle.graal.python.cext Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ language
36
36
* .so
37
37
* .rej
38
38
.checkstyle
39
+ /graalpython /com.oracle.graal.python.cext /compile_flags.txt
39
40
/graalpython /com.oracle.graal.python /src /com /oracle /graal /python /parser /antlr /* .interp
40
41
/graalpython /com.oracle.graal.python /src /com /oracle /graal /python /parser /antlr /* .tokens
41
42
/graalpython /com.oracle.graal.python /src /com /oracle /graal /python /parser /antlr /Python3 * .java
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ MODULE_OBJ_FILES=$(MODULE_SOURCES:%.c=%.o)
49
49
MODULE_TARGETS=$(MODULE_SOURCES:modules/%.c =${LIBDIR}/modules/%.bc)
50
50
51
51
.PHONY : default clean
52
- default : ${TARGET_LIB} ${MODULE_TARGETS}
52
+ default : ${TARGET_LIB} ${MODULE_TARGETS} compile_flags.txt
53
53
54
54
55
55
CFLAGS =${LLVM_TARGET_FLAGS} -O1 -ggdb -emit-llvm
@@ -82,6 +82,13 @@ clean:
82
82
$(QUIETLY ) rm -f ${OBJ_FILES}
83
83
$(QUIETLY ) rm -f ${MODULE_TARGETS}
84
84
$(QUIETLY ) rm -f ${MODULE_OBJ_FILES}
85
+ $(QUIETLY ) rm -f compile_flags.txt
85
86
ifeq ($(wildcard ../com.oracle.graal.python.test/src/tests/cpyext/* .bc) ,)
86
87
rm -f $(wildcard ../com.oracle.graal.python.test/src/tests/cpyext/*.bc)
87
88
endif
89
+
90
+ # compile_flags.txt is useful with clangd as language server
91
+ compile_flags.txt : Makefile
92
+ $(QUIETLY ) rm -f $@
93
+ $(QUIETLY ) $(foreach var,$(WARNINGS ) ,$(file >> $@ ,$(var ) ) )
94
+ $(QUIETLY ) $(foreach var,$(INCLUDES ) ,$(file >> $@ ,$(var ) ) )
You can’t perform that action at this time.
0 commit comments