aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeModules/impl
diff options
context:
space:
mode:
authorMerry <[email protected]>2023-01-06 14:27:06 +0000
committerMerry <[email protected]>2023-01-06 14:27:06 +0000
commit6b41b5be07d51d8b1e2103782bb28d4873a3ebfa (patch)
tree929e8fe32f0e68657fc1fea9e392afccfe2e66a4 /CMakeModules/impl
parentc72ee5473b5b11ac110e86cc9544cab5159ccce8 (diff)
downloaddynarmic-6b41b5be07d51d8b1e2103782bb28d4873a3ebfa.tar.gz
dynarmic-6b41b5be07d51d8b1e2103782bb28d4873a3ebfa.zip
CMakeLists: Support multi-architecture builds
Diffstat (limited to 'CMakeModules/impl')
-rw-r--r--CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake b/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake
new file mode 100644
index 00000000..82b3078a
--- /dev/null
+++ b/CMakeModules/impl/TargetArchitectureSpecificSourcesWrapFile.cmake
@@ -0,0 +1,3 @@
+string(TOUPPER "${arch}" arch)
+file(READ "${input_file}" f_contents)
+file(WRITE "${output_file}" "#include <mcl/macro/architecture.hpp>\n#if defined(MCL_ARCHITECTURE_${arch})\n${f_contents}\n#endif\n")