Lasso Soft Inc. > Home

[ sys_dll_ext ]


The [sys_dll_ext] method returns the proper dynamic library file extension for the platform. For example, it will return 'dylib' on Mac OS X and 'so' on Linux.

  • Syntax
  • Advanced

Autodetect which dynamic library extension is needed for the current platform:

[sys_dll_ext] is an excellent help when batch compiling lasso 9 files. Since the files need to have different suffixes depending on what platform they are compiled on. Saving this code in a file (make_compiled.lasso9) and running it from the command line will batch compile all .lasso files found in the same directory to the correct format for the platform lasso runs on.
Here's the command to run:
lasso9 ./make_compiled.lasso9 | bash


local(filename = array)
local(filesuffix = sys_dll_ext)

'make -f2 '
iterate(file_listdirectory('./')) => {^
	if(loop_value -> endswith('.lasso')) => {^
		#filename = loop_value -> split('.')
		#filename -> removelast
		#filename -> insert(#filesuffix)
		#filename -> join('.')
		' '

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft