There was an error while loading. Please reload this page.
1 parent ea46eac commit fbda4cbCopy full SHA for fbda4cb
src/codegen/module.cpp
@@ -132,12 +132,12 @@ string Module::compile() {
132
cc = util::getFromEnv(target.compiler_env, target.compiler);
133
cflags = util::getFromEnv("TACO_CFLAGS",
134
"-O3 -ffast-math -std=c99") + " -shared -fPIC";
135
+#if USE_OPENMP
136
+ cflags += " -fopenmp";
137
+#endif
138
file_ending = ".c";
139
shims_file = "";
140
}
-#if USE_OPENMP
- cflags += " -fopenmp";
-#endif
141
142
string cmd = cc + " " + cflags + " " +
143
prefix + file_ending + " " + shims_file + " " +
0 commit comments