File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -663,10 +663,6 @@ importer::getNormalInvocationArguments(
663
663
}
664
664
665
665
if (triple.isOSWASI ()) {
666
- invocationArgStrs.insert (invocationArgStrs.end (),
667
- {" -D_WASI_EMULATED_MMAN" ,
668
- " -D_WASI_EMULATED_SIGNAL" ,
669
- " -D_WASI_EMULATED_PROCESS_CLOCKS" });
670
666
SmallString<128 > buffer;
671
667
if (auto path = getWasiLibcModuleMapPath (searchPathOpts, triple, buffer)) {
672
668
invocationArgStrs.push_back ((Twine (" -fmodule-map-file=" ) + *path).str ());
Original file line number Diff line number Diff line change @@ -105,6 +105,20 @@ headers = [
105
105
]
106
106
}%
107
107
108
+ // FIXME?(katei):
109
+ // Those emulations are now enabled by default to have compatibility
110
+ // with other platforms as much as possible without any extra modification.
111
+ // But we should consider moving them into their own submodules.
112
+ #ifndef _WASI_EMULATED_MMAN
113
+ # define _WASI_EMULATED_MMAN
114
+ #endif
115
+ #ifndef _WASI_EMULATED_SIGNAL
116
+ # define _WASI_EMULATED_SIGNAL
117
+ #endif
118
+ #ifndef _WASI_EMULATED_PROCESS_CLOCKS
119
+ # define _WASI_EMULATED_PROCESS_CLOCKS
120
+ #endif
121
+
108
122
% for header in headers:
109
123
#if __has_include(<${header}>)
110
124
#include <${header}>
You can’t perform that action at this time.
0 commit comments