@@ -111,7 +111,6 @@ src_file = generator(
111111)
112112
113113gen_loops_c = src_file.process(' mkl_umath/src/mkl_umath_loops.c.src' )
114- gen_loops_h = src_file.process(' mkl_umath/src/mkl_umath_loops.h.src' )
115114
116115gen_umath_c = custom_target (
117116 ' __umath_generated' ,
@@ -120,6 +119,14 @@ gen_umath_c = custom_target(
120119 command : [py, ' @INPUT@' , ' -o' , ' @OUTPUT@' ]
121120)
122121
122+ gen_loops_h = custom_target (
123+ ' mkl_umath_loops_h' ,
124+ output : [' mkl_umath_loops.h' ],
125+ input : ' mkl_umath/src/mkl_umath_loops.h.src' ,
126+ command : [src_file_cli, ' @INPUT@' , ' -o' , ' @OUTPUT@' ],
127+ depends : gen_umath_c
128+ )
129+
123130mkl_umath_loops = shared_library (
124131 ' mkl_umath_loops' ,
125132 sources : [gen_loops_c, gen_loops_h],
@@ -143,7 +150,7 @@ endif
143150# gen_loops_h is generated by custom target so must be included in sources
144151py.extension_module(
145152 ' _ufuncs' ,
146- sources : [' mkl_umath/src/ufuncsmodule.c' , gen_umath_c, gen_loops_h],
153+ sources : [' mkl_umath/src/ufuncsmodule.c' , gen_loops_h],
147154 include_directories : inc_np,
148155 dependencies : [mkl_dep, tbb_dep, loops_dep],
149156 c_args : c_args + [' -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION' ],
0 commit comments