aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-07-07 20:37:27 +0000
committerlloyd <[email protected]>2009-07-07 20:37:27 +0000
commit5dd07b73e4e5c8f88f9b64273e8e4ab0862a0db8 (patch)
tree5416756616765df2f091905410724f3c66725caf /src/engine
parent431223161669026caf687c6fd69625546a4c46fa (diff)
CPU-specific engines are now only loaded if something depends on them,
and all CPU-specific implementations now depend on the appropriate engine module. The most common problem before with this was that the SSE2 module was built, but the sole SSE2 code (SHA-1) was not (for instance, on an i686). This would cause a compile warning about the unused request object. Preventing unused engines from being built will also (very slightly) speed up the lookup process on most system.
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/amd64_eng/info.txt6
-rw-r--r--src/engine/ia32_eng/info.txt6
-rw-r--r--src/engine/sse2_eng/info.txt2
3 files changed, 3 insertions, 11 deletions
diff --git a/src/engine/amd64_eng/info.txt b/src/engine/amd64_eng/info.txt
index 1d0283ad6..47f891445 100644
--- a/src/engine/amd64_eng/info.txt
+++ b/src/engine/amd64_eng/info.txt
@@ -2,13 +2,9 @@ realname "AMD64 Assembler Engine"
define ENGINE_AMD64_ASSEMBLER
-load_on auto
+load_on dep
<add>
eng_amd64.cpp
eng_amd64.h
</add>
-
-<arch>
-amd64
-</arch>
diff --git a/src/engine/ia32_eng/info.txt b/src/engine/ia32_eng/info.txt
index b9e3bddd5..3bf2a7f2b 100644
--- a/src/engine/ia32_eng/info.txt
+++ b/src/engine/ia32_eng/info.txt
@@ -2,13 +2,9 @@ realname "IA32 Assembler Engine"
define ENGINE_IA32_ASSEMBLER
-load_on auto
+load_on dep
<add>
eng_ia32.cpp
eng_ia32.h
</add>
-
-<arch>
-ia32
-</arch>
diff --git a/src/engine/sse2_eng/info.txt b/src/engine/sse2_eng/info.txt
index c44180ca4..6242c7fee 100644
--- a/src/engine/sse2_eng/info.txt
+++ b/src/engine/sse2_eng/info.txt
@@ -2,7 +2,7 @@ realname "SSE2 Assembler Engine"
define ENGINE_SSE2_ASSEMBLER
-load_on auto
+load_on dep
<add>
eng_sse2.cpp