Anyway to pass config variables by command line?

41 views
Skip to first unread message

Tiga Wu

unread,
May 21, 2019, 10:44:45 AM5/21/19
to tup-users
My goal is to compile for different platform, my Tupfile is like

ifeq (@(TUP_PLATFORM),macosx)
    # ...
endif

ifeq (@(TUP_PLATFORM),win32)
 # ...
endif

The doc says it's only possible to change @() variables in tup.config, is there any way to pass it via command line? It would be a lot easier to just TUP_PLATFORM=macosx; tup. Even more convenient would be passing custom variables, not sure if it's possible in tup.
Reply all
Reply to author
Forward
0 new messages