Skip to content

Commit f2e5079

Browse files
authored
suggest clearing the cache if a C define is missing, which is the likely cause (#6562)
1 parent 06c58d4 commit f2e5079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ var LibraryManager = {
269269
// Safe way to access a C define. We check that we don't add library functions with missing defines.
270270
function cDefine(key) {
271271
if (key in C_DEFINES) return C_DEFINES[key];
272-
throw 'XXX missing C define ' + key + '!';
272+
throw 'Missing C define ' + key + '! If you just added it to struct_info.json, you need to ./emcc --clear-cache';
273273
}
274274

275275
var EXPORTED_RUNTIME_METHODS_SET = set(EXPORTED_RUNTIME_METHODS.concat(EXTRA_EXPORTED_RUNTIME_METHODS));

0 commit comments

Comments
 (0)