diff --git a/SConscript_linux_arm b/SConscript_linux_arm new file mode 100644 index 0000000..21abd69 --- /dev/null +++ b/SConscript_linux_arm @@ -0,0 +1,26 @@ +#SConscript file for GNU/Linux ARM build only +# Author: Mark Gottscho + +import os + +# Initialize build environment +env = Environment() + +# Customize build settings + +# LINUX +env.Append(CPPFLAGS = '-Wall -Wno-unused-but-set-variable -Wno-unused-variable -g -O3 -std=c++11 -fabi-version=6') +env.Append(CPPPATH = ['src/include', '/usr/include']) +env.Append(CPPPATH = ['src/include/ext/DelayInjectedLoadedLatencyBenchmark']) # Extension: Delay-injected loaded latency benchmark +env.Append(CPPPATH = ['src/include/ext/StreamBenchmark']) # Extension: Stream benchmark +env.Append(LIBS = ['pthread', 'hugetlbfs']) + +# List all C++ source files +sources = [ + Glob('src/*.cpp'), + Glob('src/ext/*/*.cpp'), # All extensions +] + +defaultBuild = env.Program(target = 'xmem', source = sources) + +Default(defaultBuild) diff --git a/SConscript_linux_x86 b/SConscript_linux_x86 index a41031d..4d2763a 100644 --- a/SConscript_linux_x86 +++ b/SConscript_linux_x86 @@ -1,4 +1,4 @@ -# SConscript file for GNU/Linux x86-64 with AVX build only +# SConscript file for GNU/Linux x86 build only # Author: Mark Gottscho import os diff --git a/SConstruct_linux_arm b/SConstruct_linux_arm new file mode 100644 index 0000000..fcd33c9 --- /dev/null +++ b/SConstruct_linux_arm @@ -0,0 +1,5 @@ +# SConstruct file for ARM build only +# Author: Mark Gottscho + +SConscript('SConscript_linux_arm', variant_dir = 'build/linux/arm/release', duplicate = 0, exports = {'MODE':'release'}) +#SConscript('SConscript_linux_arm', variant_dir = 'build/linux/arm/debug', duplicate = 0, exports = {'MODE':'debug'})