The JIT sources pretty much already compiled under this mode except for
one thing that could just be fixed by removing the code. This will catch
some obvious bugs, like passing 'false' as a pointer.
add_compile_options(-Wno-error)
endif()
+if (MSVC)
+ add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/permissive->)
+endif()
+
function(create_standalone_jit)
set(oneValueArgs TARGET OS ARCH)
{
}
-// TODO: How do we get the ability to access uwiComp without error on Clang?
-#if defined(DEBUG) && !defined(__GNUC__)
-
- template <typename T>
- T dspPtr(T p)
- {
- return uwiComp->dspPtr(p);
- }
-
- template <typename T>
- T dspOffset(T o)
- {
- return uwiComp->dspOffset(o);
- }
-
- static const char* dspBool(bool b)
- {
- return (b) ? "true" : "false";
- }
-
-#endif // DEBUG
-
- //
- // Data
- //
-
Compiler* uwiComp;
};