summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
Diffstat (limited to 'mbld')
-rw-r--r--mbld/opts.myr1
-rw-r--r--mbld/syssel.myr3
2 files changed, 4 insertions, 0 deletions
diff --git a/mbld/opts.myr b/mbld/opts.myr
index 8956338..5cdc93a 100644
--- a/mbld/opts.myr
+++ b/mbld/opts.myr
@@ -34,6 +34,7 @@ pkg bld =
const parseversion : (v : byte[:] -> (int, int, int))
/* not exactly portable, but good enough for now */
+ const CpuidSSE2 : uint64= 0x400000000000000
const CpuidSSE4 : uint64= 0x180000
/*
diff --git a/mbld/syssel.myr b/mbld/syssel.myr
index f0223ca..636792a 100644
--- a/mbld/syssel.myr
+++ b/mbld/syssel.myr
@@ -162,6 +162,9 @@ const addsysattrs = {b, tags
match opt_arch
| "x64":
tag(b, "x64")
+ if opt_cpufeatures & CpuidSSE2 == CpuidSSE2
+ tag(b, "sse2")
+ ;;
if opt_cpufeatures & CpuidSSE4 == CpuidSSE4
tag(b, "sse4")
;;